* [Qemu-trivial] [PATCH] pflash_cfi02.c: fix debug macro
@ 2013-08-27 21:32 Antony Pavlov
2013-09-01 15:33 ` Michael Tokarev
0 siblings, 1 reply; 3+ messages in thread
From: Antony Pavlov @ 2013-08-27 21:32 UTC (permalink / raw)
To: qemu-trivial; +Cc: Antony Pavlov
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 <antonynpavlov@gmail.com>
---
hw/block/pflash_cfi02.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c
index 99445b0..8d4b828 100644
--- a/hw/block/pflash_cfi02.c
+++ b/hw/block/pflash_cfi02.c
@@ -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)
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Qemu-trivial] [PATCH] pflash_cfi02.c: fix debug macro
@ 2013-08-28 3:59 Antony Pavlov
0 siblings, 0 replies; 3+ messages in thread
From: Antony Pavlov @ 2013-08-28 3:59 UTC (permalink / raw)
To: qemu-trivial; +Cc: Antony Pavlov
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 <antonynpavlov@gmail.com>
---
hw/block/pflash_cfi02.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c
index 99445b0..8d4b828 100644
--- a/hw/block/pflash_cfi02.c
+++ b/hw/block/pflash_cfi02.c
@@ -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)
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-trivial] [PATCH] pflash_cfi02.c: fix debug macro
2013-08-27 21:32 Antony Pavlov
@ 2013-09-01 15:33 ` Michael Tokarev
0 siblings, 0 replies; 3+ messages in thread
From: Michael Tokarev @ 2013-09-01 15:33 UTC (permalink / raw)
To: Antony Pavlov; +Cc: qemu-trivial
28.08.2013 01:32, Antony Pavlov wrote:
> 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.
Thanks, applied to the trivial-patches queue.
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-01 15:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-28 3:59 [Qemu-trivial] [PATCH] pflash_cfi02.c: fix debug macro Antony Pavlov
-- strict thread matches above, loose matches on Subject: below --
2013-08-27 21:32 Antony Pavlov
2013-09-01 15:33 ` Michael Tokarev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).