aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/lib/api/debug.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2019-10-18 16:40:52 +0200
committerPetr Mladek <pmladek@suse.com>2019-10-18 16:40:52 +0200
commitfd612402152fcbc54c482971d97475e38bc1ccd7 (patch)
tree1bf9d4d4e2c9c1cb0e68a31b85adba486299c174 /tools/lib/api/debug.c
parentprintf: add support for printing symbolic error names (diff)
parenttools lib api: Renaming pr_warning to pr_warn (diff)
downloadwireguard-linux-fd612402152fcbc54c482971d97475e38bc1ccd7.tar.xz
wireguard-linux-fd612402152fcbc54c482971d97475e38bc1ccd7.zip
Merge branch 'for-5.5-pr-warn' into for-5.5
Diffstat (limited to 'tools/lib/api/debug.c')
-rw-r--r--tools/lib/api/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/api/debug.c b/tools/lib/api/debug.c
index 69b1ba3d1ee3..7708f0558e8c 100644
--- a/tools/lib/api/debug.c
+++ b/tools/lib/api/debug.c
@@ -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;
}