mirror of https://github.com/m-labs/artiq.git
artiq_personality: simplify.
This commit is contained in:
parent
8d0222c297
commit
722dfef97b
|
@ -8,14 +8,8 @@
|
|||
/* Logging */
|
||||
|
||||
#ifndef NDEBUG
|
||||
#if defined(__or1k__)
|
||||
#include "log.h"
|
||||
#define EH_LOG0(fmt) log("%s: " fmt, __func__)
|
||||
#define EH_LOG(fmt, ...) log("%s: " fmt, __func__, __VA_ARGS__)
|
||||
#else
|
||||
#define EH_LOG0(fmt) fprintf(stderr, "%s: " fmt "\n", __func__)
|
||||
#define EH_LOG(fmt, ...) fprintf(stderr, "%s: " fmt "\n", __func__, __VA_ARGS__)
|
||||
#endif
|
||||
#else
|
||||
#define EH_LOG0(fmt)
|
||||
#define EH_LOG(fmt, ...)
|
||||
|
|
Loading…
Reference in New Issue