Just printf, don't take length

This commit is contained in:
Simon Cozens 2023-02-23 17:33:50 +00:00 committed by Behdad Esfahbod
parent 3bc0ecf28c
commit 36dd27bf3f
1 changed files with 3 additions and 3 deletions

View File

@ -58,9 +58,9 @@
namespace hb { namespace wasm {
static void
debugprint (HB_WASM_EXEC_ENV
char *the_string, uint32_t len)
char *the_string)
{
printf("%.*s", (int) len, the_string);
printf("%s", the_string);
}
}}
#endif
@ -84,7 +84,7 @@ debugprint (HB_WASM_EXEC_ENV
{
NATIVE_SYMBOL ("(i)i", font_get_face),
#ifdef HB_DEBUG_WASM
NATIVE_SYMBOL ("($i)", debugprint),
NATIVE_SYMBOL ("($)", debugprint),
#endif
};
#undef NATIVE_SYMBOL