diff options
author | marius <marius@FreeBSD.org> | 2007-01-20 17:14:12 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2007-01-20 17:14:12 +0000 |
commit | c8d049b9118dd4dd90e4bd25cee904125222cd00 (patch) | |
tree | a2128f0a59a0c682eee8a27a25394ae5a92706a9 /sys | |
parent | c05aa6bb3f59fede85ec071d0c51776bd9eb0cbc (diff) | |
download | FreeBSD-src-c8d049b9118dd4dd90e4bd25cee904125222cd00.zip FreeBSD-src-c8d049b9118dd4dd90e4bd25cee904125222cd00.tar.gz |
Quiet GCC4 warnings regarding the width of printf()-arguments not
matching the format. While at it limit the format to unsigned int as
we're only interested in the 11 least significant bits anyway.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/sparc64/upa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/upa.c b/sys/sparc64/sparc64/upa.c index 0e544d1..975203f 100644 --- a/sys/sparc64/sparc64/upa.c +++ b/sys/sparc64/sparc64/upa.c @@ -413,8 +413,9 @@ upa_setup_intr(device_t dev, device_t child, struct resource *ires, int flags, intrmap = UPA_READ(sc, imr, 0x0); if (INTVEC(intrmap) != INTVEC(rman_get_start(ires))) { device_printf(dev, - "invalid interrupt vector (0x%lx != 0x%lx)\n", - INTVEC(intrmap), INTVEC(rman_get_start(ires))); + "invalid interrupt vector (0x%x != 0x%x)\n", + (unsigned int)INTVEC(intrmap), + (unsigned int)INTVEC(rman_get_start(ires))); return (EINVAL); } |