diff options
| author | hathach <[email protected]> | 2025-12-19 11:08:49 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-12-19 11:08:49 +0700 |
| commit | 7f4a76151357509f74e4afa67c02d6dd91537a88 (patch) | |
| tree | 94804f3972512a9282ff3c9b4edb992e9cf96c78 | |
| parent | 2b9a778621a2d80c4fa55b0e0deed29756a0a287 (diff) | |
remove the usage snprintf
| -rw-r--r-- | src/common/tusb_debug.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/common/tusb_debug.h b/src/common/tusb_debug.h index e0e09f5ce..470a8a18b 100644 --- a/src/common/tusb_debug.h +++ b/src/common/tusb_debug.h @@ -117,12 +117,7 @@ static inline const char* tu_lookup_find(tu_lookup_table_t const* p_table, uint3 } } - // not found return the key value in hex - static char not_found[11]; - if (snprintf(not_found, sizeof(not_found), "0x%08lX", (unsigned long) key) <= 0) { - not_found[0] = 0; - } - return not_found; + return "NotFound"; } #endif // CFG_TUSB_DEBUG |
