make dkprintf() evaluate its parameters always

Parameters of dkprintf() should be evaluated even if dkprintf() is
disabled.  Because this enables to find expression of parameter obsolete
and to avoid unnecessary compiler warnings such as "unused variable".
This commit is contained in:
NAKAMURA Gou
2014-12-22 16:18:03 +09:00
parent 9c94e90007
commit 0942bf0ce0
14 changed files with 14 additions and 14 deletions

View File

@ -33,7 +33,7 @@
#include <string.h>
#include <syscall.h>
#define dkprintf(...)
#define dkprintf(...) do { if (0) kprintf(__VA_ARGS__); } while (0)
#define ekprintf(...) kprintf(__VA_ARGS__)
struct devobj {