libpayload/usb: Add format string checking to usb_debug
commit6de5bf669850efb214fb30feb2bc07460baa5c91
authorCaveh Jalali <caveh@chromium.org>
Sat, 29 Aug 2020 00:14:51 +0000 (28 17:14 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Sun, 22 Nov 2020 22:34:55 +0000 (22 22:34 +0000)
tree86dbcf50a60a459c109d519981ac4304a6a0e5fd
parent8079a6a558526730d994aa56bf23139fbad2141c
libpayload/usb: Add format string checking to usb_debug

This turns on the compiler's printf style format string checker.

BUG=b:167517417
TEST=enabled all USB controllers on volteer and fixed resulting
compiler errors when USB_DEBUG is enabled.

Change-Id: Ic94ebcbafdde8a5f79278b5635111b99af40f892
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45025
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
payloads/libpayload/include/usb/usb.h