diff options
author | dmlb <dmlb@FreeBSD.org> | 2000-05-11 18:53:10 +0000 |
---|---|---|
committer | dmlb <dmlb@FreeBSD.org> | 2000-05-11 18:53:10 +0000 |
commit | 40439214bb51abd546a799c3299ecd88f0db9f05 (patch) | |
tree | 27ee568fc35f9a8daa62b53f3cfe0bf3f22aab39 /sys/dev/ray | |
parent | 4f14ccab5aa1ebf1e11cba84bda9a1bb79049290 (diff) | |
download | FreeBSD-src-40439214bb51abd546a799c3299ecd88f0db9f05.zip FreeBSD-src-40439214bb51abd546a799c3299ecd88f0db9f05.tar.gz |
Use device_printf.
Diffstat (limited to 'sys/dev/ray')
-rw-r--r-- | sys/dev/ray/if_raydbg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ray/if_raydbg.h b/sys/dev/ray/if_raydbg.h index 01bfd19..89a5cfe 100644 --- a/sys/dev/ray/if_raydbg.h +++ b/sys/dev/ray/if_raydbg.h @@ -93,8 +93,8 @@ } } } while (0) #define RAY_DPRINTF(sc, mask, fmt, args...) do {if (RAY_DEBUG & (mask)) {\ - printf("ray%d: %s(%d) " fmt "\n", (sc)->unit, \ - __FUNCTION__ , __LINE__ , ##args); \ + device_printf((sc)->dev, "%s(%d) " fmt "\n", \ + __FUNCTION__ , __LINE__ , ##args); \ } } while (0) #else @@ -108,7 +108,7 @@ */ #if RAY_DEBUG & RAY_DBG_COM #define RAY_COM_DUMP(sc, com, s) do { if (RAY_DEBUG & RAY_DBG_COM) { \ - printf("ray%d: %s(%d) %s com entry 0x%p\n", (sc)->unit, \ + device_printf((sc)->dev, "%s(%d) %s com entry 0x%p\n", \ __FUNCTION__ , __LINE__ , (s) , (com)); \ printf(" c_mesg %s\n", (com)->c_mesg); \ printf(" c_flags 0x%b\n", (com)->c_flags, RAY_COM_FLAGS_PRINTFB); \ |