diff options
author | wkoszek <wkoszek@FreeBSD.org> | 2009-02-07 02:14:27 +0000 |
---|---|---|
committer | wkoszek <wkoszek@FreeBSD.org> | 2009-02-07 02:14:27 +0000 |
commit | 3312f12f714b2ac55965eefaa5ed4cf8874f9a17 (patch) | |
tree | c1ff32741ff758b7558ee09680c25868ce55b658 /sys | |
parent | 4b8982cf33c335e5fd608dcde4da0b66c1ed3a0e (diff) | |
download | FreeBSD-src-3312f12f714b2ac55965eefaa5ed4cf8874f9a17.zip FreeBSD-src-3312f12f714b2ac55965eefaa5ed4cf8874f9a17.tar.gz |
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.
Diffstat (limited to 'sys')
-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 d7789ee..ded079c 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; } |