aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/api/debug-internal.h
diff options
context:
space:
mode:
authorKefeng Wang <[email protected]>2019-10-18 03:18:47 +0000
committerPetr Mladek <[email protected]>2019-10-18 13:02:57 +0000
commitc405c37bd9022ece118099fa39040bee8c5adbff (patch)
treee48a734d59efb923c4ff90ecfdfa4ded80b86069 /tools/lib/api/debug-internal.h
parentASoC: samsung: Use pr_warn instead of pr_warning (diff)
downloadkernel-c405c37bd9022ece118099fa39040bee8c5adbff.tar.gz
kernel-c405c37bd9022ece118099fa39040bee8c5adbff.zip
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/[email protected] To: [email protected] Cc: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'tools/lib/api/debug-internal.h')
-rw-r--r--tools/lib/api/debug-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/api/debug-internal.h b/tools/lib/api/debug-internal.h
index 80c783497d25..5a5820c11db8 100644
--- a/tools/lib/api/debug-internal.h
+++ b/tools/lib/api/debug-internal.h
@@ -10,11 +10,11 @@ do { \
(func)("libapi: " fmt, ##__VA_ARGS__); \
} while (0)
-extern libapi_print_fn_t __pr_warning;
+extern libapi_print_fn_t __pr_warn;
extern libapi_print_fn_t __pr_info;
extern libapi_print_fn_t __pr_debug;
-#define pr_warning(fmt, ...) __pr(__pr_warning, fmt, ##__VA_ARGS__)
+#define pr_warn(fmt, ...) __pr(__pr_warn, fmt, ##__VA_ARGS__)
#define pr_info(fmt, ...) __pr(__pr_info, fmt, ##__VA_ARGS__)
#define pr_debug(fmt, ...) __pr(__pr_debug, fmt, ##__VA_ARGS__)