cifs: convert printk(LEVEL...) to pr_<level>
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 27 Aug 2014 13:49:44 +0000 (16:49 +0300)
committerSteve French <steve.french@primarydata.com>
Mon, 8 Dec 2014 04:48:07 +0000 (22:48 -0600)
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Steve French <steve.french@primarydata.com>
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.h
fs/cifs/connect.c
fs/cifs/transport.c

index 14e082f..9c56ef7 100644 (file)
@@ -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);
 }
Simple merge
Simple merge
Simple merge