add a debug message when a device is created
authorFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2011 17:19:56 +0000 (19:19 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2011 17:19:56 +0000 (19:19 +0200)
device.c

index e9534322258777bc338900c707c60a0c310fd0cd..b260d50e5c66f45f9838715c36d4f9407d29f163 100644 (file)
--- a/device.c
+++ b/device.c
@@ -353,6 +353,7 @@ device_create(const char *name, const struct device_type *type,
        struct device *odev = NULL, *dev;
        enum dev_change_type change;
 
+       D(DEVICE, "Create new device '%s' (%s)\n", name, type->name);
        odev = device_get(name, false);
        if (odev) {
                change = device_check_config(odev, config);