lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1481636929-25738-1-git-send-email-gustavo@padovan.org>
Date:   Tue, 13 Dec 2016 11:48:49 -0200
From:   Gustavo Padovan <gustavo@...ovan.org>
To:     Shuah Khan <shuah@...nel.org>
Cc:     linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
        emilio.lopez@...labora.co.uk,
        Gustavo Padovan <gustavo.padovan@...labora.com>
Subject: [PATCH] selftest: sync: improve assert() failure message

From: Gustavo Padovan <gustavo.padovan@...labora.com>

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

Signed-off-by: Gustavo Padovan <gustavo.padovan@...labora.com>
---
 tools/testing/selftests/sync/synctest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/sync/synctest.h b/tools/testing/selftests/sync/synctest.h
index 4e0e59f..e7d1d57 100644
--- 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)
-- 
2.5.5

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ