use DPRINTF instead of fprintf(stderr)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Sep 2011 20:38:48 +0000 (22:38 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 11 Sep 2011 20:38:48 +0000 (22:38 +0200)
device.c

index 3f83cb4700f99ee4bc608ae5990cc63477ee618c..7307414d737b4b9a2467d9dc966657847b60cfba 100644 (file)
--- a/device.c
+++ b/device.c
@@ -179,7 +179,7 @@ void device_init_virtual(struct device *dev, const struct device_type *type, con
        if (name)
                strncpy(dev->ifname, name, IFNAMSIZ);
 
-       fprintf(stderr, "Initialize device '%s'\n", dev->ifname);
+       DPRINTF("Initialize device '%s'\n", dev->ifname);
        INIT_LIST_HEAD(&dev->users);
        dev->type = type;
 }
@@ -228,7 +228,7 @@ void device_cleanup(struct device *dev)
 {
        struct device_user *dep, *tmp;
 
-       fprintf(stderr, "Clean up device '%s'\n", dev->ifname);
+       DPRINTF("Clean up device '%s'\n", dev->ifname);
        list_for_each_entry_safe(dep, tmp, &dev->users, list) {
                if (!dep->cb)
                        continue;