From: Ben Scholbrock Date: Tue, 19 Jun 2012 20:44:39 +0000 (-0500) Subject: Linux printing macros for linux module X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=6c3678abe628e0d705dd42f9c4d6a333d032f784;p=palacios.releases.git Linux printing macros for linux module --- diff --git a/linux_module/palacios.h b/linux_module/palacios.h index 6450887..7b48adb 100644 --- a/linux_module/palacios.h +++ b/linux_module/palacios.h @@ -37,6 +37,21 @@ #define V3_VM_KSTREAM_USER_CONNECT (11244+1) +// KERN_EMERG "<0>" /* system is unusable */ +// KERN_ALERT "<1>" /* action must be taken immediately */ +// KERN_CRIT "<2>" /* critical conditions */ +// KERN_ERR "<3>" /* error conditions */ +// KERN_WARNING "<4>" /* warning conditions */ +// KERN_NOTICE "<5>" /* normal but significant condition */ +// KERN_INFO "<6>" /* informational */ +// KERN_DEBUG "<7>" /* debug-level messages */ + +// All 'printk's should be changed to one of these macros, for easier control +#define ERROR(fmt, args...) printk((KERN_ERR fmt), ##args) +#define WARNING(fmt, args...) printk((KERN_WARNING fmt), ##args) +#define NOTICE(fmt, args...) printk((KERN_NOTICE fmt), ##args) +#define INFO(fmt, args...) printk((KERN_INFO fmt), ##args) +#define DEBUG(fmt, args...) printk((KERN_DEBUG fmt), ##args) struct v3_guest_img { unsigned long long size;