diff options
author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2014-09-16 16:40:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-24 01:04:44 -0400 |
commit | e53582bbb53c91342f0a80add9c689e75cd9b564 (patch) | |
tree | 5da4ddee8d7899a302b4728f1a22df0061389c41 | |
parent | 9282502044ce1db0e807fb4db09e66cbbcdd2b3d (diff) |
uwb: update uwb device prints to be more useful
Print info about the radio controller device instead of the its parent
when UWB devices connect and disconnect.
Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/uwb/lc-dev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/uwb/lc-dev.c b/drivers/uwb/lc-dev.c index d0303f0dbe15..ba76810eea10 100644 --- a/drivers/uwb/lc-dev.c +++ b/drivers/uwb/lc-dev.c | |||
@@ -365,8 +365,8 @@ int __uwb_dev_offair(struct uwb_dev *uwb_dev, struct uwb_rc *rc) | |||
365 | uwb_dev_addr_print(devbuf, sizeof(devbuf), &uwb_dev->dev_addr); | 365 | uwb_dev_addr_print(devbuf, sizeof(devbuf), &uwb_dev->dev_addr); |
366 | dev_info(dev, "uwb device (mac %s dev %s) disconnected from %s %s\n", | 366 | dev_info(dev, "uwb device (mac %s dev %s) disconnected from %s %s\n", |
367 | macbuf, devbuf, | 367 | macbuf, devbuf, |
368 | rc ? rc->uwb_dev.dev.parent->bus->name : "n/a", | 368 | uwb_dev->dev.bus->name, |
369 | rc ? dev_name(rc->uwb_dev.dev.parent) : ""); | 369 | rc ? dev_name(&(rc->uwb_dev.dev)) : ""); |
370 | uwb_dev_rm(uwb_dev); | 370 | uwb_dev_rm(uwb_dev); |
371 | list_del(&uwb_dev->bce->node); | 371 | list_del(&uwb_dev->bce->node); |
372 | uwb_bce_put(uwb_dev->bce); | 372 | uwb_bce_put(uwb_dev->bce); |
@@ -445,8 +445,8 @@ void uwbd_dev_onair(struct uwb_rc *rc, struct uwb_beca_e *bce) | |||
445 | } | 445 | } |
446 | 446 | ||
447 | dev_info(dev, "uwb device (mac %s dev %s) connected to %s %s\n", | 447 | dev_info(dev, "uwb device (mac %s dev %s) connected to %s %s\n", |
448 | macbuf, devbuf, rc->uwb_dev.dev.parent->bus->name, | 448 | macbuf, devbuf, uwb_dev->dev.bus->name, |
449 | dev_name(rc->uwb_dev.dev.parent)); | 449 | dev_name(&(rc->uwb_dev.dev))); |
450 | uwb_notify(rc, uwb_dev, UWB_NOTIF_ONAIR); | 450 | uwb_notify(rc, uwb_dev, UWB_NOTIF_ONAIR); |
451 | return; | 451 | return; |
452 | 452 | ||