]> Git Repo - qemu.git/commitdiff
pflash_cfi02.c: fix debug macro
authorAntony Pavlov <[email protected]>
Wed, 28 Aug 2013 03:59:37 +0000 (07:59 +0400)
committerMichael Tokarev <[email protected]>
Sun, 1 Sep 2013 15:32:42 +0000 (19:32 +0400)
If PFLASH_DEBUG is enabled then we have some build errors:

hw/block/pflash_cfi02.c: In function ‘pflash_timer’:
hw/block/pflash_cfi02.c:128:5: error: expected ‘)’ before string constant
hw/block/pflash_cfi02.c:128:5: error: too few arguments to function ‘fprintf’

This patch fixes the problem.

Signed-off-by: Antony Pavlov <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
hw/block/pflash_cfi02.c

index 99445b09b92c2c600fa936ad3722e408d7b33051..8d4b828edf509520d8951554784a5e671009428e 100644 (file)
@@ -47,7 +47,7 @@
 #ifdef PFLASH_DEBUG
 #define DPRINTF(fmt, ...)                                  \
 do {                                                       \
-    fprintf(stderr "PFLASH: " fmt , ## __VA_ARGS__);       \
+    fprintf(stderr, "PFLASH: " fmt , ## __VA_ARGS__);       \
 } while (0)
 #else
 #define DPRINTF(fmt, ...) do { } while (0)
This page took 0.02531 seconds and 4 git commands to generate.