From: Andy Shevchenko Date: Wed, 27 Aug 2014 13:49:44 +0000 (+0300) Subject: cifs: convert printk(LEVEL...) to pr_ X-Git-Tag: omap-for-v3.20/drop-legacy-3517~144^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b456f04bcdf5b1151136adaada158bfc26f1be7;p=pandora-kernel.git cifs: convert printk(LEVEL...) to pr_ The useful macros embed message level in the name. Thus, it cleans up the code a bit. In cases when it was plain printk() the conversion was done to info level. Signed-off-by: Andy Shevchenko Signed-off-by: Steve French --- diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 14e082ff1944..9c56ef776407 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -34,8 +34,7 @@ void cifs_dump_mem(char *label, void *data, int length) { - printk(KERN_DEBUG "%s: dump of %d bytes of data at 0x%p\n", - label, length, data); + pr_debug("%s: dump of %d bytes of data at 0x%p\n", label, length, data); print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 4, data, length, true); } @@ -51,7 +50,7 @@ void cifs_vfs_err(const char *fmt, ...) vaf.fmt = fmt; vaf.va = &args; - printk(KERN_ERR "CIFS VFS: %pV", &vaf); + pr_err("CIFS VFS: %pV", &vaf); va_end(args); } Reading git-diff-tree failed