device.c: report device type when claim fails
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Oct 2013 14:15:29 +0000 (16:15 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Oct 2013 14:15:29 +0000 (16:15 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
device.c

index 53971c8dffc9a86d5516cd4cb7dbfe94cbf5e881..c30650abd844f19e71f4b2dfa4fab01a0fe331eb 100644 (file)
--- a/device.c
+++ b/device.c
@@ -216,7 +216,7 @@ int device_claim(struct device_user *dep)
        if (ret == 0)
                device_broadcast_event(dev, DEV_EVENT_UP);
        else {
-               D(DEVICE, "claim device %s failed: %d\n", dev->ifname, ret);
+               D(DEVICE, "claim %s %s failed: %d\n", dev->type->name, dev->ifname, ret);
                dev->active = 0;
                dep->claimed = false;
        }