Cast 'data' to 'u_char', as printf() requires this type to be unsigned. This

is what gcc3 complains about.

Without this change, it's impossible to build the kernel with gcc3.

Tested by:	cognet@ (mentor)
Approved by:	cognet@ (mentor)
This commit is contained in:
wkoszek 2007-12-04 20:33:58 +00:00
parent 7c00aa0ce7
commit e12f989849

View File

@ -1488,7 +1488,7 @@ ipw_cmd(struct ipw_softc *sc, uint32_t type, void *data, uint32_t len)
if (ipw_debug >= 9 && len > 0) {
printf(" data: 0x");
for (int i = 1; i <= len; i++)
printf("%1D", (char *)data + len - i, "");
printf("%1D", (u_char *)data + len - i, "");
}
printf("\n");
}