pflash_cfi02.c: fix debug macro
PATCH 1/1 pflash_cfi02.c: fix debug macro
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]>
--- hw/block/pflash_cfi02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/block/pflash_cfi02.c +1 -1
@@ -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)
Signature · 1 line
1.8.4.rc3
Michael Tokarev
AppliedQuoted 7 lines · Antony Pavlov
If
PFLASH_DEBUGis 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 constanthw/block/pflash_cfi02.c:128:5: error: too few arguments to function ‘fprintf’This patch fixes the problem.
Thanks, applied to the trivial-patches queue.
/mjt