aboutsummaryrefslogtreecommitdiff
path: root/hw/pflash_cfi01.c
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2012-12-04 16:04:34 +1000
committerStefan Hajnoczi <stefanha@redhat.com>2012-12-18 16:49:51 +0100
commitec9ea4890cd06de1648cbbfb99fcb63e01f4000f (patch)
tree00e830324fb38ef2ae57a2cb26a0d76ff53c440e /hw/pflash_cfi01.c
parentd96fc51cc6defcd80bdf932823dadd88be532a0b (diff)
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>
Diffstat (limited to 'hw/pflash_cfi01.c')
-rw-r--r--hw/pflash_cfi01.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c
index f9f8e5d03c..931264ff8c 100644
--- a/hw/pflash_cfi01.c
+++ b/hw/pflash_cfi01.c
@@ -46,15 +46,15 @@
#define PFLASH_BUG(fmt, ...) \
do { \
- printf("PFLASH: Possible BUG - " fmt, ## __VA_ARGS__); \
+ fprintf(stderr, "PFLASH: Possible BUG - " fmt, ## __VA_ARGS__); \
exit(1); \
} while(0)
/* #define PFLASH_DEBUG */
#ifdef PFLASH_DEBUG
-#define DPRINTF(fmt, ...) \
-do { \
- printf("PFLASH: " fmt , ## __VA_ARGS__); \
+#define DPRINTF(fmt, ...) \
+do { \
+ fprintf(stderr, "PFLASH: " fmt , ## __VA_ARGS__); \
} while (0)
#else
#define DPRINTF(fmt, ...) do { } while (0)