mirror of https://github.com/xemu-project/xemu.git
pflash_cfi0x: Send debug messages to stderr
These debug info messages should go to stderr rather than stdout. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
d96fc51cc6
commit
ec9ea4890c
|
@ -46,7 +46,7 @@
|
|||
|
||||
#define PFLASH_BUG(fmt, ...) \
|
||||
do { \
|
||||
printf("PFLASH: Possible BUG - " fmt, ## __VA_ARGS__); \
|
||||
fprintf(stderr, "PFLASH: Possible BUG - " fmt, ## __VA_ARGS__); \
|
||||
exit(1); \
|
||||
} while(0)
|
||||
|
||||
|
@ -54,7 +54,7 @@ do { \
|
|||
#ifdef PFLASH_DEBUG
|
||||
#define DPRINTF(fmt, ...) \
|
||||
do { \
|
||||
printf("PFLASH: " fmt , ## __VA_ARGS__); \
|
||||
fprintf(stderr, "PFLASH: " fmt , ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
#else
|
||||
#define DPRINTF(fmt, ...) do { } while (0)
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
#ifdef PFLASH_DEBUG
|
||||
#define DPRINTF(fmt, ...) \
|
||||
do { \
|
||||
printf("PFLASH: " fmt , ## __VA_ARGS__); \
|
||||
fprintf(stderr "PFLASH: " fmt , ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
#else
|
||||
#define DPRINTF(fmt, ...) do { } while (0)
|
||||
|
|
Loading…
Reference in New Issue