ソースを参照

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

YAMAMOTO Takashi 7 ヶ月 前
コミット
1c12a32066
1 ファイル変更2 行追加2 行削除
  1. 2 2
      core/iwasm/libraries/wasi-nn/src/wasi_nn_openvino.c

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

@@ -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;