projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c461265
)
selftest: sync: improve assert() failure message
author
Gustavo Padovan
<
[email protected]
>
Tue, 13 Dec 2016 13:48:49 +0000
(11:48 -0200)
committer
Shuah Khan
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Shuah Khan <
[email protected]
>
tools/testing/selftests/sync/synctest.h
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/sync/synctest.h
b/tools/testing/selftests/sync/synctest.h
index 4e0e59f6fcf3822ab308208363a351785e932949..e7d1d57dba7a375978b22d2a94b6296fb5a3b70e 100644
(file)
--- a/
tools/testing/selftests/sync/synctest.h
+++ b/
tools/testing/selftests/sync/synctest.h
@@
-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)