diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-11 22:38:48 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-11 22:38:48 +0200 |
commit | 31cf8623be5e402f4fdc624ba1f5c43e64c80ca9 (patch) | |
tree | 0eb42ef814cc71703a6c4ab1eed2153355b56a66 /device.c | |
parent | 25cb39d2bcf72442c7d793a71b5a3950f701e302 (diff) |
use DPRINTF instead of fprintf(stderr)
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |