Skip to content

Commit 1c12a32

Browse files
authored
wasi_nn_openvino.c: fix a few printf formats (#4310)
1 parent 938503a commit 1c12a32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/iwasm/libraries/wasi-nn/src/wasi_nn_openvino.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ dump_ov_shape_t(const ov_shape_t *shape, int32_t output_len, char *output)
5858
{
5959
int ret = 0;
6060

61-
ret = snprintf(output, output_len, "%ld,[", shape->rank);
61+
ret = snprintf(output, output_len, "%" PRId64 ",[", shape->rank);
6262
if (!ret)
6363
return;
6464

6565
output_len -= ret;
6666
output += ret;
6767

6868
for (unsigned i = 0; i < shape->rank && output_len; i++) {
69-
ret = snprintf(output, output_len, " %ld", shape->dims[i]);
69+
ret = snprintf(output, output_len, " %" PRId64, shape->dims[i]);
7070
if (!ret)
7171
return;
7272

0 commit comments

Comments
 (0)