Skip to content
Browse files

virtio: Add dev_debug helper

  • Loading branch information...
1 parent caf94bd commit 15ac57c16c69024b142b496e68fcb4286ee891d0 @xl0 committed Sep 30, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 virtio/util.h
View
7 virtio/util.h
@@ -2,6 +2,13 @@
#include <sys/dditypes.h>
#include <sys/sysmacros.h>
+#ifdef DEBUG
+#define dev_debug(dip, fmt, arg...) \
+ dev_err(dip, fmt, ##arg)
+#else
+#define dev_debug(dip, fmt, arg...)
+#endif
+
void dev_err(dev_info_t *dip, int ce, char *fmt, ...);
void dev_panic(dev_info_t *dip, char *fmt, ...);

0 comments on commit 15ac57c

Please sign in to comment.
Something went wrong with that request. Please try again.