From c8d049b9118dd4dd90e4bd25cee904125222cd00 Mon Sep 17 00:00:00 2001 From: marius Date: Sat, 20 Jan 2007 17:14:12 +0000 Subject: [PATCH] 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. --- sys/sparc64/sparc64/upa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/sparc64/sparc64/upa.c b/sys/sparc64/sparc64/upa.c index 0e544d19d547..975203fa85fb 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); }