diff options
author | mike <mike@FreeBSD.org> | 2003-01-05 16:23:49 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2003-01-05 16:23:49 +0000 |
commit | 8e212c067127cf7538b4d2e0f7cf83e102b90f1a (patch) | |
tree | 8c3ea1e628bd6bd0772d6df1cb932a56a2c44c0d | |
parent | 36f295a49d26aa455dc1737382e74126ce50cb58 (diff) | |
download | FreeBSD-src-8e212c067127cf7538b4d2e0f7cf83e102b90f1a.zip FreeBSD-src-8e212c067127cf7538b4d2e0f7cf83e102b90f1a.tar.gz |
Avoid casting pointers to int and using %x to print them.
Noticed by: alpha tinderbox
-rw-r--r-- | sys/dev/wi/wi_hostap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/wi/wi_hostap.c b/sys/dev/wi/wi_hostap.c index 5248cc1..cb06cd8 100644 --- a/sys/dev/wi/wi_hostap.c +++ b/sys/dev/wi/wi_hostap.c @@ -205,7 +205,7 @@ wihap_init(struct wi_softc *sc) struct wihap_info *whi = &sc->wi_hostap_info; if (sc->arpcom.ac_if.if_flags & IFF_DEBUG) - printf("wihap_init: sc=0x%x whi=0x%x\n", (int)sc, (int)whi); + printf("wihap_init: sc=%p whi=%p\n", sc, whi); bzero(whi, sizeof(struct wihap_info)); @@ -289,8 +289,7 @@ wihap_shutdown(struct wi_softc *sc) int s; if (sc->arpcom.ac_if.if_flags & IFF_DEBUG) - printf("wihap_shutdown: sc=0x%x whi=0x%x\n", - (int)sc, (int)whi); + printf("wihap_shutdown: sc=%p whi=%p\n", sc, whi); if (!(whi->apflags & WIHAPFL_ACTIVE)) return; @@ -316,7 +315,7 @@ wihap_shutdown(struct wi_softc *sc) /* Delete the structure. */ if (sc->arpcom.ac_if.if_flags & IFF_DEBUG) - printf("wihap_shutdown: FREE(sta=0x%x)\n", (int)sta); + printf("wihap_shutdown: FREE(sta=%p)\n", sta); next = LIST_NEXT(sta, list); FREE(sta, M_HAP_STA); sta = next; |