1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

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:
Wojciech A. Koszek 2007-12-04 20:33:58 +00:00
parent 959a913b87
commit 9977143467
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174269

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