Updated error message string
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 14 Feb 2019 08:41:25 +0000 (17:41 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 14 Feb 2019 08:42:09 +0000 (17:42 +0900)
1. In order to prevent incorrect impression on the string size, added "up to"
2. Don't apply 80col break for error message strings; it often makes it to grep error messages (ref: Linux kernel 80col rule)

gst/nnstreamer/tensor_converter/tensor_converter.c

index 1593852..da0faf2 100644 (file)
@@ -1161,7 +1161,7 @@ gst_tensor_converter_parse_caps (GstTensorConverter * self,
             "Failed to get tensor info, need to update string size.");
 
         g_critical ("Please set the property input-dim to convert stream.\n"
-            "For example, input-dim=30 to handle fixed 30 bytes of string.");
+            "For example, input-dim=30 to handle up to 30 bytes of string per frame.");
         return FALSE;
       }
 
@@ -1174,9 +1174,8 @@ gst_tensor_converter_parse_caps (GstTensorConverter * self,
         GST_ERROR_OBJECT (self,
             "Failed to get tensor info, need to update dimension and type.");
 
-        g_critical ("Please set the properties input-dim and input-type "
-            "to convert stream.\nFor example, input-dim=30:1 input-type=unit8 "
-            "to handle 30 bytes of bin data.");
+        g_critical ("Please set the properties input-dim and input-type to convert stream.\n"
+            "For example, input-dim=30:1 input-type=unit8 to handle 30 bytes of bin data.");
         return FALSE;
       }