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;
}
{
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;