Patchwork Debugcon: Fix debugging printf

login
register
mail settings
Submitter Adam Lackorzynski
Date April 1, 2010, 9:45 p.m.
Message ID <20100401214525.GB23153@os.inf.tu-dresden.de>
Download mbox | patch
Permalink /patch/49246/
State New
Headers show

Comments

Adam Lackorzynski - April 1, 2010, 9:45 p.m.
Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
---
 hw/debugcon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Aurelien Jarno - April 8, 2010, 7:44 p.m.
On Thu, Apr 01, 2010 at 11:45:25PM +0200, Adam Lackorzynski wrote:
> Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>


Thanks, applied.

> ---
>  hw/debugcon.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/hw/debugcon.c b/hw/debugcon.c
> index d549091..5ee6821 100644
> --- a/hw/debugcon.c
> +++ b/hw/debugcon.c
> @@ -60,7 +60,7 @@ static uint32_t debugcon_ioport_read(void *opaque, uint32_t addr)
>      DebugconState *s = opaque;
>  
>  #ifdef DEBUG_DEBUGCON
> -    printf("debugcon: read addr=0x%04x\n", addr, val);
> +    printf("debugcon: read addr=0x%04x\n", addr);
>  #endif
>  
>      return s->readback;
> -- 
> 1.7.0.3
> 
> 
> Adam
> -- 
> Adam                 adam@os.inf.tu-dresden.de
>   Lackorzynski         http://os.inf.tu-dresden.de/~adam/
> 
> 
>

Patch

diff --git a/hw/debugcon.c b/hw/debugcon.c
index d549091..5ee6821 100644
--- a/hw/debugcon.c
+++ b/hw/debugcon.c
@@ -60,7 +60,7 @@  static uint32_t debugcon_ioport_read(void *opaque, uint32_t addr)
     DebugconState *s = opaque;
 
 #ifdef DEBUG_DEBUGCON
-    printf("debugcon: read addr=0x%04x\n", addr, val);
+    printf("debugcon: read addr=0x%04x\n", addr);
 #endif
 
     return s->readback;