Print the error code if the regulator enable fails, otherwise the error
message is rather useless and confusing.
Signed-off-by: Marek Vasut <marex@denx.de>
(type == USB_INIT_DEVICE) ?
false : true);
if (ret && ret != -ENOSYS) {
- puts("Error enabling VBUS supply\n");
+ printf("Error enabling VBUS supply (ret=%i)\n", ret);
return ret;
}
}
(type == USB_INIT_DEVICE) ?
false : true);
if (ret && ret != -ENOSYS) {
- puts("Error enabling VBUS supply\n");
+ printf("Error enabling VBUS supply (ret=%i)\n", ret);
return ret;
}
}