summaryrefslogtreecommitdiffstats
path: root/core.h
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-08 11:42:14 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:39 +1100
commit470fdcb5f773ab45f715a665af6cb35a79ef38ce (patch)
treeec86f3f7f11c71b30ad7828e2d769a3ae3504ca5 /core.h
parent931ac3b329c106c9058250b994e6a150c977b606 (diff)
Refactor to use new DINFO macros
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'core.h')
-rw-r--r--core.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/core.h b/core.h
index d9b1382..ec44081 100644
--- a/core.h
+++ b/core.h
@@ -16,6 +16,17 @@
#define MAX_STREAMS 16
#define MAX_NAME_LEN 80
+#define DINFO(logname, fmt, args...) \
+ printk(KERN_INFO "[AVIRT][%s]: " fmt "\n", logname, ##args)
+
+#define DERROR(logname, fmt, args...) \
+ printk(KERN_ERR "[AVIRT][%s]: %d:%s " fmt "\n", logname, __LINE__, \
+ __func__, ##args)
+
+#define DDEBUG(logname, fmt, args...) \
+ printk(KERN_DEBUG "[AVIRT][%s]: %d:%s " fmt "\n", logname, __LINE__, \
+ __func__, ##args)
+
/**
* AVIRT Audio Path configure function type
* Each Audio Path registers this at avirt_audiopath_register time.