diff options
author | Frederic Danis <frederic.danis@linux.intel.com> | 2015-09-23 18:18:07 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-24 16:25:44 +0200 |
commit | 594b31ea7dc6101519deee1b31483fce2e1a7414 (patch) | |
tree | 11e8a5ad7b3cd644497dbc8409a59f745e9fb07e /net | |
parent | f0ef67485f5918794143b7a85d60c1a52bc690ec (diff) | |
download | op-kernel-dev-594b31ea7dc6101519deee1b31483fce2e1a7414.zip op-kernel-dev-594b31ea7dc6101519deee1b31483fce2e1a7414.tar.gz |
Bluetooth: Add BT_WARN and bt_dev_warn logging macros
Add warning logging macros to bluetooth subsystem logs.
Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/lib.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c index 8b4cdce..aa4cf64 100644 --- a/net/bluetooth/lib.c +++ b/net/bluetooth/lib.c @@ -151,6 +151,22 @@ void bt_info(const char *format, ...) } EXPORT_SYMBOL(bt_info); +void bt_warn(const char *format, ...) +{ + struct va_format vaf; + va_list args; + + va_start(args, format); + + vaf.fmt = format; + vaf.va = &args; + + pr_warn("%pV", &vaf); + + va_end(args); +} +EXPORT_SYMBOL(bt_warn); + void bt_err(const char *format, ...) { struct va_format vaf; |