wasi_nn_openvino.c: fix a few printf formats (#4310)

This commit is contained in:
YAMAMOTO Takashi 2025-06-03 14:21:32 +09:00 committed by GitHub
parent 938503af38
commit 1c12a32066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ dump_ov_shape_t(const ov_shape_t *shape, int32_t output_len, char *output)
{
int ret = 0;
ret = snprintf(output, output_len, "%ld,[", shape->rank);
ret = snprintf(output, output_len, "%" PRId64 ",[", shape->rank);
if (!ret)
return;
@ -66,7 +66,7 @@ dump_ov_shape_t(const ov_shape_t *shape, int32_t output_len, char *output)
output += ret;
for (unsigned i = 0; i < shape->rank && output_len; i++) {
ret = snprintf(output, output_len, " %ld", shape->dims[i]);
ret = snprintf(output, output_len, " %" PRId64, shape->dims[i]);
if (!ret)
return;