diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-01-27 20:55:56 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-01-27 20:55:56 +0000 |
commit | 7e5bcc31172b7a6247e53e49e22665a16fba6802 (patch) | |
tree | 4f5715636a0db517c2c8667058d979d027f008f4 | |
parent | 9de2fbf861c2ee290eafe599961732d07d899948 (diff) |
When flooding dmesg with ``can't read/write phy register'', be nice enough to
print the register number, so that someone gets a chance to investigate the
problem.
-rw-r--r-- | sys/dev/ic/re.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index 5686dd0f121..c28fa3f8944 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.63 2007/01/26 15:29:10 jason Exp $ */ +/* $OpenBSD: re.c,v 1.64 2007/01/27 20:55:55 miod Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -422,7 +422,7 @@ re_miibus_readreg(struct device *dev, int phy, int reg) splx(s); return (rval); default: - printf("%s: bad phy register\n", sc->sc_dev.dv_xname); + printf("%s: bad phy register %x\n", sc->sc_dev.dv_xname, reg); splx(s); return (0); } @@ -481,7 +481,7 @@ re_miibus_writereg(struct device *dev, int phy, int reg, int data) return; break; default: - printf("%s: bad phy register\n", sc->sc_dev.dv_xname); + printf("%s: bad phy register %x\n", sc->sc_dev.dv_xname, reg); splx(s); return; } |