diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-08 11:42:14 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:39 +1100 |
commit | 470fdcb5f773ab45f715a665af6cb35a79ef38ce (patch) | |
tree | ec86f3f7f11c71b30ad7828e2d769a3ae3504ca5 /core.h | |
parent | 931ac3b329c106c9058250b994e6a150c977b606 (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.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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. |