diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-19 21:20:13 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-19 22:05:53 -0700 |
commit | 24cd8ca4ee1ea08526eb82e6c122870c86da5603 (patch) | |
tree | 25e467df0236b8a514bbc328299f8500277f9512 /libusb/usb_common.c | |
parent | 1cc68fb6f72ada5446a9914cc3bf97db9259a880 (diff) |
Add libmisc/log.h to remove stdio.h
Diffstat (limited to 'libusb/usb_common.c')
-rw-r--r-- | libusb/usb_common.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 <libmisc/assert.h> +#define LOG_NAME USB_COMMON +#include <libmisc/log.h> + #include <libusb/tusb_helpers.h> /* for LANGID_*, TU_UTF16() */ #include <libusb/usb_common.h> +#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; } } |