[…] printk(KERN_ERR LOG_PREFIX": " f "\n" , ## arg) pr_err(LOG_PREFIX": " f "\n" , ## arg) printk(KERN_INFO LOG_PREFIX": " f "\n" , ## arg) pr_info(LOG_PREFIX": " f "\n" , ## arg) printk(KERN_WARNING LOG_PREFIX": " f "\n" , ## arg) pr_warn(LOG_PREFIX": " f "\n" , ## arg) Besides what 'checkpatch' suggest/output - Antti, is it a correct conversions? cheers, poma
--- rtl2832_priv.h.orig 2012-05-18 02:02:48.561114101 +0200 +++ rtl2832_priv.h 2012-05-18 12:20:45.000000000 +0200 @@ -29,13 +29,13 @@ #undef dbg #define dbg(f, arg...) \ if (rtl2832_debug) \ - printk(KERN_INFO LOG_PREFIX": " f "\n" , ## arg) + pr_info(LOG_PREFIX": " f "\n" , ## arg) #undef err -#define err(f, arg...) printk(KERN_ERR LOG_PREFIX": " f "\n" , ## arg) +#define err(f, arg...) pr_err(LOG_PREFIX": " f "\n" , ## arg) #undef info -#define info(f, arg...) printk(KERN_INFO LOG_PREFIX": " f "\n" , ## arg) +#define info(f, arg...) pr_info(LOG_PREFIX": " f "\n" , ## arg) #undef warn -#define warn(f, arg...) printk(KERN_WARNING LOG_PREFIX": " f "\n" , ## arg) +#define warn(f, arg...) pr_warn(LOG_PREFIX": " f "\n" , ## arg) struct rtl2832_priv { struct i2c_adapter *i2c;