From: Ahreum Jeong Date: Wed, 9 Aug 2017 04:06:10 +0000 (+0900) Subject: Add a conditional for ttrace debugging to show_packet function X-Git-Tag: 1.1_Public_Release~391^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d2208814fbd6c8a945c70ba735696ee72ab4e74;p=rtos%2Ftinyara.git Add a conditional for ttrace debugging to show_packet function --- diff --git a/lib/libc/ttrace/lib_ttrace.c b/lib/libc/ttrace/lib_ttrace.c index 334bf28..c049516 100644 --- a/lib/libc/ttrace/lib_ttrace.c +++ b/lib/libc/ttrace/lib_ttrace.c @@ -238,7 +238,9 @@ int trace_sched(struct tcb_s *prev_tcb, struct tcb_s *next_tcb) assert(0); } - //show_sched_packet(&packet); +#ifdef CONFIG_DEBUG_TTRACE + show_sched_packet(&packet); +#endif ret = send_packet_sched(&packet); return ret; @@ -275,7 +277,9 @@ int trace_begin(int tag, char *str, ...) assert(0); } - //show_packet(&packet); +#ifdef CONFIG_DEBUG_TTRACE + show_packet(&packet); +#endif ret = send_packet(&packet); return ret; @@ -299,7 +303,9 @@ int trace_begin_u(int tag, int8_t uid) assert(0); } - //show_packet(&packet); +#ifdef CONFIG_DEBUG_TTRACE + show_packet(&packet); +#endif ret = send_packet(&packet); return ret; @@ -333,7 +339,9 @@ int trace_end(int tag) assert(0); } - //show_packet(&packet); +#ifdef CONFIG_DEBUG_TTRACE + show_packet(&packet); +#endif ret = send_packet(&packet); return ret;