Message ID | 20180622134036.23182-15-f4bug@amsat.org |
---|---|
State | New |
Headers | show |
Series | hw/arm: use qemu_log_mask instead of fprintf | expand |
On 22.06.2018 15:40, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > hw/arm/stellaris.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c > index d06e366402..42baa768b2 100644 > --- a/hw/arm/stellaris.c > +++ b/hw/arm/stellaris.c > @@ -294,7 +294,7 @@ static void gptm_write(void *opaque, hwaddr offset, > break; > default: > qemu_log_mask(LOG_GUEST_ERROR, > - "GPTM: read at bad offset 0x%x\n", (int)offset); > + "GPTM: write at bad offset 0x%x\n", (int)offset); While you're at it, remove the cast and use HWADDR_PRIx ? Thomas
On 06/22/2018 04:55 PM, Thomas Huth wrote: > On 22.06.2018 15:40, Philippe Mathieu-Daudé wrote: >> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> >> --- >> hw/arm/stellaris.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c >> index d06e366402..42baa768b2 100644 >> --- a/hw/arm/stellaris.c >> +++ b/hw/arm/stellaris.c >> @@ -294,7 +294,7 @@ static void gptm_write(void *opaque, hwaddr offset, >> break; >> default: >> qemu_log_mask(LOG_GUEST_ERROR, >> - "GPTM: read at bad offset 0x%x\n", (int)offset); >> + "GPTM: write at bad offset 0x%x\n", (int)offset); > > While you're at it, remove the cast and use HWADDR_PRIx ? Sure. Thanks for your review!
diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index d06e366402..42baa768b2 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -294,7 +294,7 @@ static void gptm_write(void *opaque, hwaddr offset, break; default: qemu_log_mask(LOG_GUEST_ERROR, - "GPTM: read at bad offset 0x%x\n", (int)offset); + "GPTM: write at bad offset 0x%x\n", (int)offset); } gptm_update_irq(s); }
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- hw/arm/stellaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)