From 24cd8ca4ee1ea08526eb82e6c122870c86da5603 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 19 Nov 2024 21:20:13 -0700 Subject: Add libmisc/log.h to remove stdio.h --- libusb/usb_common.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libusb/usb_common.c') diff --git a/libusb/usb_common.c b/libusb/usb_common.c index 17dba0a..c9429e7 100644 --- a/libusb/usb_common.c +++ b/libusb/usb_common.c @@ -13,9 +13,14 @@ #include +#define LOG_NAME USB_COMMON +#include + #include /* for LANGID_*, TU_UTF16() */ #include +#include "config.h" + /* Strings ********************************************************************/ /** @@ -54,12 +59,12 @@ uint16_t const *tud_descriptor_string_cb(uint8_t strid, uint16_t langid) { #pragma GCC diagnostic pop break; default: - printf("GET STRING: unknown string id=%"PRIu8, strid); + debugf("GET STRING: unknown string id=%"PRIu8, strid); return NULL; } break; default: - printf("GET STRING: unknown LANGID=%"PRIx16, langid); + debugf("GET STRING: unknown LANGID=%"PRIx16, langid); return NULL; } } -- cgit v1.2.3-2-g168b