diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2002-09-24 21:33:43 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2002-09-24 21:33:43 +0000 |
| commit | 301472c20b7f5708f10ef5dd158880a3d3b2ff40 (patch) | |
| tree | 683ca1d2f8289ce1dbb22310c3590c2f4b934160 /sys/dev/mpt/mpt_debug.c | |
| parent | 660e41d37f9d1c3d3570c5bee501aa4a23becf04 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mpt/mpt_debug.c')
| -rw-r--r-- | sys/dev/mpt/mpt_debug.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/mpt/mpt_debug.c b/sys/dev/mpt/mpt_debug.c index 8027295862ce8..7654fee00c66f 100644 --- a/sys/dev/mpt/mpt_debug.c +++ b/sys/dev/mpt/mpt_debug.c @@ -31,6 +31,7 @@ */ #include <dev/mpt/mpt_freebsd.h> +#include <machine/stdarg.h> /* for use by mpt_prt below */ struct Error_Map { int Error_Code; @@ -592,3 +593,14 @@ mpt_dump_sgl(SGE_IO_UNION *su) iCount -= 1; } while ((flags & MPI_SGE_FLAGS_END_OF_LIST) == 0 && iCount != 0); } + +void +mpt_prt(mpt_softc_t *mpt, const char *fmt, ...) +{ + va_list ap; + printf("%s: ", device_get_nameunit(mpt->dev)); + va_start(ap, fmt); + vprintf(fmt, ap); + va_end(ap); + printf("\n"); +} |
