Commit ac8620c7 authored by frei tycho's avatar frei tycho Committed by Johan Hedberg
Browse files

tracing: change controlling expressions in while to Boolean



Use `do { ... } while (false)` instead of `do { ... } while (0)`.

Signed-off-by: default avatarfrei tycho <tfrei@baumer.com>
parent 421a6820
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ void sys_trace_thread_info(struct k_thread *thread);
	do {                                                                                       \
		SEGGER_SYSVIEW_OnTaskCreate((uint32_t)(uintptr_t)new_thread);                      \
		sys_trace_thread_info(new_thread);                                                 \
	} while (0)
	} while (false)

#define sys_port_trace_k_thread_user_mode_enter()                                                  \
	SEGGER_SYSVIEW_RecordVoid(TID_THREAD_USERMODE_ENTER)
@@ -102,7 +102,7 @@ void sys_trace_thread_info(struct k_thread *thread);
#define sys_port_trace_k_thread_name_set(thread, ret) do { \
		SEGGER_SYSVIEW_RecordU32(TID_THREAD_NAME_SET, (uint32_t)(uintptr_t)thread); \
		sys_trace_thread_info(thread);	\
	} while (0)
	} while (false)

#define sys_port_trace_k_thread_switched_out() sys_trace_k_thread_switched_out()