Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: hci_sync: Don't double print name in add/remove adv_monitor

The hci_add_adv_monitor() hci_remove_adv_monitor() functions call
bt_dev_dbg() to print some debug statements. The bt_dev_dbg() macro
automatically adds in the device's name. That means that we shouldn't
include the name in the bt_dev_dbg() calls.

Suggested-by: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Douglas Anderson and committed by
Luiz Augusto von Dentz
6f55eea1 999a8a6b

+5 -5
+5 -5
net/bluetooth/hci_core.c
··· 1949 1949 1950 1950 switch (hci_get_adv_monitor_offload_ext(hdev)) { 1951 1951 case HCI_ADV_MONITOR_EXT_NONE: 1952 - bt_dev_dbg(hdev, "%s add monitor %d status %d", hdev->name, 1952 + bt_dev_dbg(hdev, "add monitor %d status %d", 1953 1953 monitor->handle, status); 1954 1954 /* Message was not forwarded to controller - not an error */ 1955 1955 break; 1956 1956 1957 1957 case HCI_ADV_MONITOR_EXT_MSFT: 1958 1958 status = msft_add_monitor_pattern(hdev, monitor); 1959 - bt_dev_dbg(hdev, "%s add monitor %d msft status %d", hdev->name, 1959 + bt_dev_dbg(hdev, "add monitor %d msft status %d", 1960 1960 monitor->handle, status); 1961 1961 break; 1962 1962 } ··· 1976 1976 1977 1977 switch (hci_get_adv_monitor_offload_ext(hdev)) { 1978 1978 case HCI_ADV_MONITOR_EXT_NONE: /* also goes here when powered off */ 1979 - bt_dev_dbg(hdev, "%s remove monitor %d status %d", hdev->name, 1979 + bt_dev_dbg(hdev, "remove monitor %d status %d", 1980 1980 monitor->handle, status); 1981 1981 goto free_monitor; 1982 1982 1983 1983 case HCI_ADV_MONITOR_EXT_MSFT: 1984 1984 handle = monitor->handle; 1985 1985 status = msft_remove_monitor(hdev, monitor); 1986 - bt_dev_dbg(hdev, "%s remove monitor %d msft status %d", 1987 - hdev->name, handle, status); 1986 + bt_dev_dbg(hdev, "remove monitor %d msft status %d", 1987 + handle, status); 1988 1988 break; 1989 1989 } 1990 1990