From 5c3ae4e4614a59707bfaf5b2ac079f735b74b707 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Tue, 7 Apr 2020 19:59:36 +0900 Subject: [PATCH] [Log] Use ml_log* instead of g_* for logging With ml_log* nnstreamer internal APIs, we can enable dlog in Tizen and Android logging in Android while keep using GLIB's logging in other systems. Fixes #1905 Signed-off-by: MyungJoo Ham --- ext/nnstreamer/tensor_source/tensor_src_tizensensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/nnstreamer/tensor_source/tensor_src_tizensensor.c b/ext/nnstreamer/tensor_source/tensor_src_tizensensor.c index f1c1feb..d5d68a7 100644 --- a/ext/nnstreamer/tensor_source/tensor_src_tizensensor.c +++ b/ext/nnstreamer/tensor_source/tensor_src_tizensensor.c @@ -580,7 +580,7 @@ _ts_configure_handle (GstTensorSrcTIZENSENSOR * self) /* Based on Tizen Native App (Sensor) Guide */ /* 1. Check if the sensor supported */ ret = sensor_is_supported (self->type, &supported); - if (ret != 0) { + if (ret != SENSOR_ERROR_NONE) { ml_loge ("Tizen sensor framework is not working (sensor_is_supported).\n"); return -ENODEV; } -- 2.7.4