From ab63484170f8f773ff6dc680c780e9480e01361f Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Thu, 14 Feb 2019 17:41:25 +0900 Subject: [PATCH] Updated error message string 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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gst/nnstreamer/tensor_converter/tensor_converter.c b/gst/nnstreamer/tensor_converter/tensor_converter.c index 1593852..da0faf2 100644 --- a/gst/nnstreamer/tensor_converter/tensor_converter.c +++ b/gst/nnstreamer/tensor_converter/tensor_converter.c @@ -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; } -- 2.7.4