diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2006-04-26 02:07:31 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2006-04-26 02:07:31 +0000 |
commit | 8e2bdef6dc9b0f4d93dd996ecdc328f333ee798f (patch) | |
tree | 60120312e7e18ad70a25b5e4b4c21ed6faa18284 /sys/dev/pci/if_nfe.c | |
parent | 54eb52469e4e2949f9cca3ec348791ea586bfdc0 (diff) |
Use %b in error flag printfs to describe meaning of error bits.
requested by deraadt@
Diffstat (limited to 'sys/dev/pci/if_nfe.c')
-rw-r--r-- | sys/dev/pci/if_nfe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index d24ef80da8a..1e5ed34056d 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nfe.c,v 1.56 2006/04/26 01:33:38 brad Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.57 2006/04/26 02:07:29 jsg Exp $ */ /*- * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -813,8 +813,8 @@ nfe_txeof(struct nfe_softc *sc) goto skip; if ((flags & NFE_TX_ERROR_V1) != 0) { - printf("%s: tx v1 error 0x%04x\n", - sc->sc_dev.dv_xname, flags); + printf("%s: tx v1 error 0x%04b\n", + sc->sc_dev.dv_xname, flags, NFE_V1_TXERR); ifp->if_oerrors++; } else ifp->if_opackets++; @@ -823,8 +823,8 @@ nfe_txeof(struct nfe_softc *sc) goto skip; if ((flags & NFE_TX_ERROR_V2) != 0) { - printf("%s: tx v2 error 0x%04x\n", - sc->sc_dev.dv_xname, flags); + printf("%s: tx v2 error 0x%04b\n", + sc->sc_dev.dv_xname, flags, NFE_V2_TXERR); ifp->if_oerrors++; } else ifp->if_opackets++; |