clean up cmake, remove family_get_project_name()

This commit is contained in:
hathach
2025-12-19 12:24:06 +07:00
parent 7f4a761513
commit 49a8529dcf
46 changed files with 267 additions and 384 deletions

View File

@ -117,7 +117,16 @@ static inline const char* tu_lookup_find(tu_lookup_table_t const* p_table, uint3
}
}
#ifndef CFG_TUSB_DEBUG_PRINTF
// not found return the key value in hex if no custom printf is defined
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;
#else
return "NotFound";
#endif
}
#endif // CFG_TUSB_DEBUG