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.
This commit is contained in:
parent
c05aa6bb3f
commit
c8d049b911
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user