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 53971c8..c30650a 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;
        }