gt64xxx.c: fix length modifier in DPRINTF format string

The commit fc2bf44972
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 "%" PRIx64.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Antony Pavlov 2011-09-26 09:02:37 +04:00 committed by Stefan Hajnoczi
parent 8cf28bcaf1
commit ce8d2800f7

View File

@ -543,19 +543,19 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr,
/* not really implemented */ /* not really implemented */
s->regs[saddr] = ~(~(s->regs[saddr]) | ~(val & 0xfffffffe)); s->regs[saddr] = ~(~(s->regs[saddr]) | ~(val & 0xfffffffe));
s->regs[saddr] |= !!(s->regs[saddr] & 0xfffffffe); s->regs[saddr] |= !!(s->regs[saddr] & 0xfffffffe);
DPRINTF("INTRCAUSE %x\n", val); DPRINTF("INTRCAUSE %" PRIx64 "\n", val);
break; break;
case GT_INTRMASK: case GT_INTRMASK:
s->regs[saddr] = val & 0x3c3ffffe; s->regs[saddr] = val & 0x3c3ffffe;
DPRINTF("INTRMASK %x\n", val); DPRINTF("INTRMASK %" PRIx64 "\n", val);
break; break;
case GT_PCI0_ICMASK: case GT_PCI0_ICMASK:
s->regs[saddr] = val & 0x03fffffe; s->regs[saddr] = val & 0x03fffffe;
DPRINTF("ICMASK %x\n", val); DPRINTF("ICMASK %" PRIx64 "\n", val);
break; break;
case GT_PCI0_SERR0MASK: case GT_PCI0_SERR0MASK:
s->regs[saddr] = val & 0x0000003f; s->regs[saddr] = val & 0x0000003f;
DPRINTF("SERR0MASK %x\n", val); DPRINTF("SERR0MASK %" PRIx64 "\n", val);
break; break;
/* Reserved when only PCI_0 is configured. */ /* Reserved when only PCI_0 is configured. */