diff options
author | Wojciech A. Koszek <wkoszek@FreeBSD.org> | 2009-02-07 02:14:27 +0000 |
---|---|---|
committer | Wojciech A. Koszek <wkoszek@FreeBSD.org> | 2009-02-07 02:14:27 +0000 |
commit | e54815ad40deb91ff0695c485353eaa924432dfb (patch) | |
tree | c1ff32741ff758b7558ee09680c25868ce55b658 /sys/dev/si | |
parent | b2e73ce9557c2c3b5279ead53faca81a4686dd31 (diff) | |
download | src-e54815ad40deb91ff0695c485353eaa924432dfb.tar.gz src-e54815ad40deb91ff0695c485353eaa924432dfb.zip |
si_cmdname() is defined only when SI_DEBUG is enabled, thus
using this function in simple printf() causes compile-time
problems. Use conditionally enabled DPRINT() macro instead.
Notes
Notes:
svn path=/head/; revision=188266
Diffstat (limited to 'sys/dev/si')
-rw-r--r-- | sys/dev/si/si.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index d7789eed9ec1..ded079c7ac22 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -1549,7 +1549,7 @@ si_command(struct si_port *pp, int cmd, int waitflag) /* This is very very bad. The card has crashed. */ /* XXX the driver breaks at this point */ if (err == ETIMEDOUT) - printf("%s: tsleep1 timeout. hi_stat %s, sp_pend %s\n", pp->sp_name, si_cmdname(ccbp->hi_stat), si_cmdname(pp->sp_pend)); + DPRINT(("%s: tsleep1 timeout. hi_stat %s, sp_pend %s\n", pp->sp_name, si_cmdname(ccbp->hi_stat), si_cmdname(pp->sp_pend))); splx(oldspl); return; } @@ -1586,7 +1586,7 @@ si_command(struct si_port *pp, int cmd, int waitflag) if (err) { DPRINT((pp, DBG_PARAM, "sicmd2 tsleep error: hi_stat (%s) sp_pend (%s)\n", si_cmdname(ccbp->hi_stat), si_cmdname(pp->sp_pend))); if (err == ETIMEDOUT) { - printf("%s: tsleep2 timeout. hi_stat %s, sp_pend %s\n", pp->sp_name, si_cmdname(ccbp->hi_stat), si_cmdname(pp->sp_pend)); + DPRINT(("%s: tsleep2 timeout. hi_stat %s, sp_pend %s\n", pp->sp_name, si_cmdname(ccbp->hi_stat), si_cmdname(pp->sp_pend))); } break; } |