lkml.org 
[lkml]   [2016]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] selftest: sync: improve assert() failure message
From
Date
On 12/13/2016 06:48 AM, Gustavo Padovan wrote:
> From: Gustavo Padovan <gustavo.padovan@collabora.com>
>
> Print "ERROR" on all messages instead of using the not well defined terms
> like "BAD".
>
> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.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)
>

Thanks, Applied to linux-kselftest next for 4.10-rc1

-- Shuah

\
 
 \ /
  Last update: 2016-12-13 15:34    [W:0.115 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site