summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Barclay <dmlb@FreeBSD.org>2000-05-11 18:53:10 +0000
committerDuncan Barclay <dmlb@FreeBSD.org>2000-05-11 18:53:10 +0000
commit144f532f95ad77a360a75c4bd2bf6c0075016a19 (patch)
tree5da682ef89547d7d3597a8fecd397b651675e3cb
parentb72a45a0b5d596761370d3f250109a9a9ac7a326 (diff)
Notes
-rw-r--r--sys/dev/ray/if_raydbg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ray/if_raydbg.h b/sys/dev/ray/if_raydbg.h
index 01bfd199d1fb..89a5cfed3794 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); \