usb: dwc2: add printf attribute to cat_printf()
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Sun, 26 Jun 2016 08:12:38 +0000 (10:12 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 29 Jun 2016 08:11:07 +0000 (11:11 +0300)
commite135ab7405f562c7709806e355b1521ee68548dc
tree701174279d1c5fe88eb58e9e877af40ff657d9b3
parent0d7995031a8e7a34e5638d57a44a51aae39e321c
usb: dwc2: add printf attribute to cat_printf()

As cat_printf() uses printf format strings in its parameters, adding
__printf attribute allows the compiler to detect at compile-time some
errors related to format strings (with -Wformat warning flag).

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/hcd_queue.c