summaryrefslogtreecommitdiff
path: root/net/bluetooth/lib.c
diff options
context:
space:
mode:
authorDibyendu Roy <dibyen@codeaurora.org>2016-06-21 13:34:28 +0530
committerKyle Yan <kyan@codeaurora.org>2016-06-28 17:01:54 -0700
commitb378543680c2a1f52fc91e0a10921184ec2a842c (patch)
treeda87ae4b577375d9784858f99238082b0f24ff63 /net/bluetooth/lib.c
parent88196d66781e7b593ff64fc2d34bcc8151d8e310 (diff)
Bluetooth: Replace %p with %pK
The %pK restrictions are used to eliminate exposing kernel addresses. When kptr_restrict is set to "0" there are no restrictions. When kptr_restrict is set to "1", kernel pointers printed using the %pK format specifier will be replaced with 0's unless the user has CAP_SYSLOG. When kptr_restrict is set to "2", kernel pointers printed using %pK will be replaced with 0's regardless of privileges. Change-Id: Iacd8f7b7cdafed3a111507d3da899be9261ff09f Signed-off-by: Dibyendu Roy <dibyen@codeaurora.org>
Diffstat (limited to 'net/bluetooth/lib.c')
-rw-r--r--net/bluetooth/lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c
index aa4cf64e32a6..e87b965230bf 100644
--- a/net/bluetooth/lib.c
+++ b/net/bluetooth/lib.c
@@ -145,7 +145,7 @@ void bt_info(const char *format, ...)
vaf.fmt = format;
vaf.va = &args;
- pr_info("%pV", &vaf);
+ pr_info("%pKV", &vaf);
va_end(args);
}
@@ -161,7 +161,7 @@ void bt_warn(const char *format, ...)
vaf.fmt = format;
vaf.va = &args;
- pr_warn("%pV", &vaf);
+ pr_warn("%pKV", &vaf);
va_end(args);
}
@@ -177,7 +177,7 @@ void bt_err(const char *format, ...)
vaf.fmt = format;
vaf.va = &args;
- pr_err("%pV", &vaf);
+ pr_err("%pKV", &vaf);
va_end(args);
}
@@ -193,7 +193,7 @@ void bt_err_ratelimited(const char *format, ...)
vaf.fmt = format;
vaf.va = &args;
- pr_err_ratelimited("%pV", &vaf);
+ pr_err_ratelimited("%pKV", &vaf);
va_end(args);
}