|
@@ -76,9 +76,12 @@ struct bt_power {
|
|
#define BT_POWER_FORCE_ACTIVE_OFF 0
|
|
#define BT_POWER_FORCE_ACTIVE_OFF 0
|
|
#define BT_POWER_FORCE_ACTIVE_ON 1
|
|
#define BT_POWER_FORCE_ACTIVE_ON 1
|
|
|
|
|
|
-#define BT_INFO(fmt, arg...) printk(KERN_INFO "Bluetooth: " fmt "\n" , ## arg)
|
|
|
|
-#define BT_ERR(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __func__ , ## arg)
|
|
|
|
-#define BT_DBG(fmt, arg...) pr_debug("%s: " fmt "\n" , __func__ , ## arg)
|
|
|
|
|
|
+__attribute__((format (printf, 2, 3)))
|
|
|
|
+int bt_printk(const char *level, const char *fmt, ...);
|
|
|
|
+
|
|
|
|
+#define BT_INFO(fmt, arg...) bt_printk(KERN_INFO, pr_fmt(fmt), ##arg)
|
|
|
|
+#define BT_ERR(fmt, arg...) bt_printk(KERN_ERR, pr_fmt(fmt), ##arg)
|
|
|
|
+#define BT_DBG(fmt, arg...) pr_debug(fmt "\n", ##arg)
|
|
|
|
|
|
/* Connection and socket states */
|
|
/* Connection and socket states */
|
|
enum {
|
|
enum {
|