[TensorIF] Fix the wrong index in log format
authorseungha.son <linuxias@gmail.com>
Wed, 6 Sep 2023 09:32:24 +0000 (18:32 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 7 Sep 2023 02:47:50 +0000 (11:47 +0900)
 - Wrong array index occur unwanted behavior and problem.

Signed-off-by: seungha.son <linuxias@gmail.com>
gst/nnstreamer/elements/gsttensor_if.c

index d55cf64..e635f29 100644 (file)
@@ -383,7 +383,7 @@ gst_tensor_if_set_property_cv_option (const GValue * value, GList ** prop_list)
     val = g_ascii_strtoll (strv[1], NULL, 10);
     if (errno == ERANGE) {
       ml_loge ("Overflow occured during converting %s to a gint64 value",
-          strv[i]);
+          strv[1]);
     }
     *prop_list = g_list_append (*prop_list, GINT_TO_POINTER (val));
   }