From: Jaeyun Jung Date: Wed, 21 Nov 2018 15:51:04 +0000 (+0900) Subject: [Common] remove macro to print log X-Git-Tag: v0.0.3~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b332941ca22ef23ae1c5f2a100b8947c2bfbe69;p=platform%2Fupstream%2Fnnstreamer.git [Common] remove macro to print log nnstreamer elements use gst/glib macro to print logs. remove unnecessary macros in common header. Signed-off-by: Jaeyun Jung --- diff --git a/gst/nnstreamer/tensor_common.h b/gst/nnstreamer/tensor_common.h index 4752e2a..631caf3 100644 --- a/gst/nnstreamer/tensor_common.h +++ b/gst/nnstreamer/tensor_common.h @@ -391,30 +391,6 @@ extern gchar *get_tensor_dimension_string (const tensor_dim dim); extern size_t get_tensor_element_count (const tensor_dim dim); /** - * @brief Make str(xyz) ==> "xyz" with macro expansion - */ -#define str(s) xstr(s) -#define xstr(s) #s - -/** - * @brief Debug message print. - */ -#define debug_print(cond,...) \ - do { \ - if ((cond) == TRUE) { \ - g_message (__FILE__ ":" str(__LINE__) " " __VA_ARGS__); \ - } \ - } while (0) - -/** - * @brief Error message print. - */ -#define err_print(...) \ - do { \ - g_warning (__FILE__ ":" str(__LINE__) " " __VA_ARGS__); \ - } while (0) - -/** * @brief A callback for typefind, trying to find whether a file is other/tensors or not. * For the concrete definition of headers, please look at the wiki page of nnstreamer: * https://github.com/nnsuite/nnstreamer/wiki/Design-External-Save-Format-for-other-tensor-and-other-tensors-Stream-for-TypeFind