gt64xxx.c: fix length modifier in DPRINTF format string
PATCH 1/2 gt64xxx.c: fix length modifier in DPRINTF format string
The commit fc2bf44972349b078d8310466c3866615500e67f changed the type of val argument of the function gt64120_writel() from uint32_t to uint64_t, so we need to change the corresponding length modifier from '%x' to '%llx'.
--- hw/gt64xxx.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
hw/gt64xxx.c +4 -4
@@ -543,19 +543,19 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr,/* not really implemented */ s->regs[saddr] = ~(~(s->regs[saddr]) | ~(val &0xfffffffe )); s->regs[saddr] |= !!(s->regs[saddr] &0xfffffffe ); -DPRINTF ("INTRCAUSE %x\n" , val); +DPRINTF ("INTRCAUSE %" PRIx64"\n" , val);break ;case GT_INTRMASK : s->regs[saddr] = val &0x3c3ffffe ; -DPRINTF ("INTRMASK %x\n" , val); +DPRINTF ("INTRMASK %" PRIx64"\n" , val);break ;case GT_PCI0_ICMASK : s->regs[saddr] = val &0x03fffffe ; -DPRINTF ("ICMASK %x\n" , val); +DPRINTF ("ICMASK %" PRIx64"\n" , val);break ;case GT_PCI0_SERR0MASK : s->regs[saddr] = val &0x0000003f ; -DPRINTF ("SERR0MASK %x\n" , val); +DPRINTF ("SERR0MASK %" PRIx64"\n" , val);break ;/* Reserved when only PCI_0 is configured. */
Signature · 1 line
1.7.5.4
PATCH 2/2 gt64xxx.c: remove reference to non-existing ISD_handle field
The commit fc2bf44972349b078d8310466c3866615500e67f removed ISD_handle field from struct GT64120State, so remove the field from DPRINTF too.
--- hw/gt64xxx.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
hw/gt64xxx.c +3 -2
@@ -275,8 +275,9 @@ static void gt64120_isd_mapping(GT64120State *s)check_reserved_space (&start, &length); length =0x1000 ;/* Map new address */ -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); +DPRINTF ("ISD: " TARGET_FMT_plx"@" TARGET_FMT_plx +" -> " TARGET_FMT_plx"@" TARGET_FMT_plx"\n" , + s->ISD_length, s->ISD_start, length, start); s->ISD_start = start; s->ISD_length = length;memory_region_add_subregion (get_system_memory (), s->ISD_start, &s->ISD_mem);
Signature · 1 line
1.7.5.4
Quoted 4 lines · Antony Pavlov
The commit
fc2bf44972349b078d8310466c3866615500e67fchanged the type of val argument of the functiongt64120_writel()fromuint32_ttouint64_t, so we need to change the corresponding length modifier from '%x' to '%llx'.
Revised patch looks OK but you forgot to update the commit message :-)
-- PMM
Quoted 7 lines · Peter Maydell
Quoted 4 lines · Antony Pavlov
The commit
fc2bf44972349b078d8310466c3866615500e67fchanged the type of val argument of the functiongt64120_writel()fromuint32_ttouint64_t, so we need to change the corresponding length modifier from '%x' to '%llx'.Revised patch looks OK but you forgot to update the commit message :-)
Aghhhh.
Next time I shell be more lucky. Wait for new patches.
Signature · 2 lines
Best regards, Antony Pavlov