Bluetooth: Add BT_WARN and bt_dev_warn logging macros
[deliverable/linux.git] / net / bluetooth / lib.c
index 8b4cdce3f62e5a4477a481c2fcc86c56be497321..aa4cf64e32a67b9263d0c5729b8f2f73289f22f1 100644 (file)
@@ -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;
This page took 0.028202 seconds and 5 git commands to generate.