Support get return value for SGX os_printf/os_vprintf (#1387)

Fix the issue reported in #1359, change the implementation of
os_printf/os_vprintf for Intel SGX to get the actual bytes written.
This commit is contained in:
Wenyong Huang
2022-08-16 14:23:34 +08:00
committed by GitHub
parent aa7d447ee5
commit 6caa6b1d73
6 changed files with 31 additions and 22 deletions

View File

@ -40,10 +40,10 @@ pal_get_enclave_id(void)
return g_eid;
}
void
int
ocall_print(const char *str)
{
printf("%s", str);
return printf("%s", str);
}
static char *