Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftest: sync: improve assert() failure message

Print "ERROR" on all messages instead of using the not well defined terms
like "BAD".

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>

authored by

Gustavo Padovan and committed by
Shuah Khan
981c3db6 c4612656

+1 -1
+1 -1
tools/testing/selftests/sync/synctest.h
··· 32 32 33 33 #define ASSERT(cond, msg) do { \ 34 34 if (!(cond)) { \ 35 - printf("[BAD]\t%s", (msg)); \ 35 + printf("[ERROR]\t%s", (msg)); \ 36 36 return 1; \ 37 37 } \ 38 38 } while (0)