Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: uvc: add uvcg_warn macro

We only have uvcg_dbg, uvcg_info, and uvcg_err, so add uvcg_warn macro
to print gadget device name and function name along with format.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

authored by

Paul Elder and committed by
Felipe Balbi
e49107d8 8b4c62ae

+2
+2
drivers/usb/gadget/function/uvc.h
··· 56 56 dev_dbg(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args) 57 57 #define uvcg_info(f, fmt, args...) \ 58 58 dev_info(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args) 59 + #define uvcg_warn(f, fmt, args...) \ 60 + dev_warn(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args) 59 61 #define uvcg_err(f, fmt, args...) \ 60 62 dev_err(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args) 61 63