Patchwork [3/3] Fix hw/gt64xxx.c compilation with DEBUG defined

login
register
mail settings
Submitter Riccardo Magliocchetti
Date May 19, 2010, 4:49 p.m.
Message ID <5d7d32878677943c615e0a19488cc59b06fd47ce.1274281724.git.riccardo.magliocchetti@gmail.com>
Download mbox | patch
Permalink /patch/52998/
State New
Headers show

Comments

Riccardo Magliocchetti - May 19, 2010, 4:49 p.m.
Use TARGET_FMT_plx as format placeholder for target_phys_addr_t

Signed-off-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
---
 hw/gt64xxx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Aurelien Jarno - May 28, 2010, 8:58 p.m.
On Wed, May 19, 2010 at 06:49:30PM +0200, Riccardo Magliocchetti wrote:
> Use TARGET_FMT_plx as format placeholder for target_phys_addr_t
> 
> Signed-off-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

Thanks, applied.

> ---
>  hw/gt64xxx.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c
> index 55971b9..7691e1d 100644
> --- a/hw/gt64xxx.c
> +++ b/hw/gt64xxx.c
> @@ -276,7 +276,7 @@ static void gt64120_isd_mapping(GT64120State *s)
>      check_reserved_space(&start, &length);
>      length = 0x1000;
>      /* Map new address */
> -    DPRINTF("ISD: %x@%x -> %x@%x, %x\n", s->ISD_length, s->ISD_start,
> +    DPRINTF("ISD: "TARGET_FMT_plx"@"TARGET_FMT_plx" -> "TARGET_FMT_plx"@"TARGET_FMT_plx", %x\n", s->ISD_length, s->ISD_start,
>              length, start, s->ISD_handle);
>      s->ISD_start = start;
>      s->ISD_length = length;
> -- 
> 1.7.1
> 
> 
>

Patch

diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c
index 55971b9..7691e1d 100644
--- a/hw/gt64xxx.c
+++ b/hw/gt64xxx.c
@@ -276,7 +276,7 @@  static void gt64120_isd_mapping(GT64120State *s)
     check_reserved_space(&start, &length);
     length = 0x1000;
     /* Map new address */
-    DPRINTF("ISD: %x@%x -> %x@%x, %x\n", s->ISD_length, s->ISD_start,
+    DPRINTF("ISD: "TARGET_FMT_plx"@"TARGET_FMT_plx" -> "TARGET_FMT_plx"@"TARGET_FMT_plx", %x\n", s->ISD_length, s->ISD_start,
             length, start, s->ISD_handle);
     s->ISD_start = start;
     s->ISD_length = length;