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:
Marius Strobl 2007-01-20 17:14:12 +00:00
parent 089292ab0b
commit d7a0d759c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166154

View file

@ -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);
}