Whamcloud - gitweb
LU-9859 libcfs: fix cfs_print_to_console() 47/35847/2
authorJames Simmons <jsimmons@infradead.org>
Wed, 21 Aug 2019 15:52:03 +0000 (11:52 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 27 Aug 2019 02:20:34 +0000 (02:20 +0000)
commit08ec9c8b6f5a1334fa7de822a50fd480b844884c
tree175e0cc2b392ded0d12d3956dbb9eb0fd40d46d5
parent9b6b5e4798281eceb45699431bc871eda6d968c4
LU-9859 libcfs: fix cfs_print_to_console()

The original code for cfs_print_to_console() used printk() and
used tricks to select which printk level to use. Later a cleanup
patch landed the just converted printk directly to pr_info which
is not exactly correct. Instead of converting back to printk lets
move everything to pr_* type functions which simplify the code.
This allows us to fold both dbghdr_to_err_string() and the
function dbghdr_to_info_string() into cfs_print_to_console().

Linux-commit: f030d88558e77bbf07fab388c341af1cf86135c9

Fixes: 003096c7e3e ("LU-6142 libcfs: Fix style issues for linux-tracefile.c")

Change-Id: I44646b1ff41505faa05eeea7bfcb6911e893fb73
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/35847
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/linux/linux-tracefile.c