]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/gadget/configfs.c
usb, gadget: use appropriate warning accessors
[~andy/linux] / drivers / usb / gadget / configfs.c
index a34633a898a157438e8231d7b1351c09fc16e497..3d5cfc9c2c78a51950701b68bb94bfbb25f2f25c 100644 (file)
@@ -439,7 +439,7 @@ static int config_usb_cfg_unlink(
                }
        }
        mutex_unlock(&gi->lock);
-       __WARN_printf("Unable to locate function to unbind\n");
+       WARN(1, "Unable to locate function to unbind\n");
        return 0;
 }
 
@@ -730,7 +730,7 @@ USB_CONFIG_STRINGS_LANG(gadget_strings, gadget_info);
 
 static int configfs_do_nothing(struct usb_composite_dev *cdev)
 {
-       __WARN();
+       WARN_ON(1);
        return -EINVAL;
 }