]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: libcfs: use pr_* instead of printk
authorJames Simmons <jsimmons@infradead.org>
Thu, 17 Nov 2016 19:35:54 +0000 (14:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 07:47:32 +0000 (08:47 +0100)
Checkpatch recommended that we use pr_*() instead
of printk directly.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/libcfs/linux/linux-tracefile.c

index a3cabb92e2884e252aeba03f0d9eaa6fe423453c..75eb84e7f0f815103864feb7e017002676808f25 100644 (file)
@@ -85,7 +85,7 @@ int cfs_tracefile_init_arch(void)
 
 out:
        cfs_tracefile_fini_arch();
-       printk(KERN_ERR "lnet: Not enough memory\n");
+       pr_err("lnet: Not enough memory\n");
        return -ENOMEM;
 }
 
@@ -239,11 +239,11 @@ void cfs_print_to_console(struct ptldebug_header *hdr, int mask,
        }
 
        if (mask & D_CONSOLE) {
-               printk("%s%s: %.*s", ptype, prefix, len, buf);
+               pr_info("%s%s: %.*s", ptype, prefix, len, buf);
        } else {
-               printk("%s%s: %d:%d:(%s:%d:%s()) %.*s", ptype, prefix,
-                      hdr->ph_pid, hdr->ph_extern_pid, file, hdr->ph_line_num,
-                      fn, len, buf);
+               pr_info("%s%s: %d:%d:(%s:%d:%s()) %.*s", ptype, prefix,
+                       hdr->ph_pid, hdr->ph_extern_pid, file,
+                       hdr->ph_line_num, fn, len, buf);
        }
 }