sdhci: Change debug prints to compile unconditionally

Conditional compilation hides few type mismatch warnings, fix it to
compile unconditionally.

Signed-off-by: Sai Pavan Boddu <saipava@xilinx.com>
Suggested-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Sai Pavan Boddu 2015-09-07 23:36:41 +05:30 committed by Michael Tokarev
parent be9c5ddeab
commit 7af0fc994e

View file

@ -37,24 +37,24 @@
#define SDHC_DEBUG 0 #define SDHC_DEBUG 0
#endif #endif
#if SDHC_DEBUG == 0 #define DPRINT_L1(fmt, args...) \
#define DPRINT_L1(fmt, args...) do { } while (0) do { \
#define DPRINT_L2(fmt, args...) do { } while (0) if (SDHC_DEBUG) { \
#define ERRPRINT(fmt, args...) do { } while (0) fprintf(stderr, "QEMU SDHC: " fmt, ## args); \
#elif SDHC_DEBUG == 1 } \
#define DPRINT_L1(fmt, args...) \ } while (0)
do {fprintf(stderr, "QEMU SDHC: "fmt, ## args); } while (0) #define DPRINT_L2(fmt, args...) \
#define DPRINT_L2(fmt, args...) do { } while (0) do { \
#define ERRPRINT(fmt, args...) \ if (SDHC_DEBUG > 1) { \
do {fprintf(stderr, "QEMU SDHC ERROR: "fmt, ## args); } while (0) fprintf(stderr, "QEMU SDHC: " fmt, ## args); \
#else } \
#define DPRINT_L1(fmt, args...) \ } while (0)
do {fprintf(stderr, "QEMU SDHC: "fmt, ## args); } while (0) #define ERRPRINT(fmt, args...) \
#define DPRINT_L2(fmt, args...) \ do { \
do {fprintf(stderr, "QEMU SDHC: "fmt, ## args); } while (0) if (SDHC_DEBUG) { \
#define ERRPRINT(fmt, args...) \ fprintf(stderr, "QEMU SDHC ERROR: " fmt, ## args); \
do {fprintf(stderr, "QEMU SDHC ERROR: "fmt, ## args); } while (0) } \
#endif } while (0)
/* Default SD/MMC host controller features information, which will be /* Default SD/MMC host controller features information, which will be
* presented in CAPABILITIES register of generic SD host controller at reset. * presented in CAPABILITIES register of generic SD host controller at reset.