tools lib api: Renaming pr_warning to pr_warn
For kernel logging macro, pr_warning is completely removed and replaced by pr_warn, using pr_warn in tools lib api for symmetry to kernel logging macro, then we could drop pr_warning in the whole linux code. Changing __pr_warning to __pr_warn to be consistent. Link: http://lkml.kernel.org/r/20191018031850.48498-30-wangkefeng.wang@huawei.com To: linux-kernel@vger.kernel.org Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
@@ -15,7 +15,7 @@ static int __base_pr(const char *format, ...)
|
||||
return err;
|
||||
}
|
||||
|
||||
libapi_print_fn_t __pr_warning = __base_pr;
|
||||
libapi_print_fn_t __pr_warn = __base_pr;
|
||||
libapi_print_fn_t __pr_info = __base_pr;
|
||||
libapi_print_fn_t __pr_debug;
|
||||
|
||||
@@ -23,7 +23,7 @@ void libapi_set_print(libapi_print_fn_t warn,
|
||||
libapi_print_fn_t info,
|
||||
libapi_print_fn_t debug)
|
||||
{
|
||||
__pr_warning = warn;
|
||||
__pr_warn = warn;
|
||||
__pr_info = info;
|
||||
__pr_debug = debug;
|
||||
}
|
||||
|
Reference in New Issue
Block a user