]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
selftest: sync: improve assert() failure message
authorGustavo Padovan <gustavo.padovan@collabora.com>
Tue, 13 Dec 2016 13:48:49 +0000 (11:48 -0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 13 Dec 2016 14:24:34 +0000 (07:24 -0700)
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>
tools/testing/selftests/sync/synctest.h

index 4e0e59f6fcf3822ab308208363a351785e932949..e7d1d57dba7a375978b22d2a94b6296fb5a3b70e 100644 (file)
@@ -32,7 +32,7 @@
 
 #define ASSERT(cond, msg) do { \
        if (!(cond)) { \
-               printf("[BAD]\t%s", (msg)); \
+               printf("[ERROR]\t%s", (msg)); \
                return 1; \
        } \
 } while (0)