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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46e34e14-165-348f-aefd-372afe2e492@linux.intel.com>
Date:   Wed, 30 Aug 2023 15:02:17 +0300 (EEST)
From:   Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To:     "Wieczor-Retman, Maciej" <maciej.wieczor-retman@...el.com>
cc:     Shuah Khan <shuah@...nel.org>,
        Reinette Chatre <reinette.chatre@...el.com>,
        "Wieczor-Retman, Maciej" <maciej.wieczor-retman@...el.com>,
        Wieczor-Retman@...ux.intel.com, linux-kselftest@...r.kernel.org,
        LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 5/6] selftests/sigaltstack: Fix wrong format specifier

On Mon, 28 Aug 2023, Wieczor-Retman, Maciej wrote:

> The format specifier inside ksft printing function expects a long
> unsigned int but the passed variable is of unsigned int type.
> 
> Fix the format specifier so it matches the passed variable.
> 
> Signed-off-by: Wieczor-Retman, Maciej <maciej.wieczor-retman@...el.com>
> ---
>  tools/testing/selftests/sigaltstack/sas.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/sigaltstack/sas.c b/tools/testing/selftests/sigaltstack/sas.c
> index 98d37cb744fb..07227fab1cc9 100644
> --- a/tools/testing/selftests/sigaltstack/sas.c
> +++ b/tools/testing/selftests/sigaltstack/sas.c
> @@ -111,7 +111,7 @@ int main(void)
>  
>  	/* Make sure more than the required minimum. */
>  	stack_size = getauxval(AT_MINSIGSTKSZ) + SIGSTKSZ;
> -	ksft_print_msg("[NOTE]\tthe stack size is %lu\n", stack_size);
> +	ksft_print_msg("[NOTE]\tthe stack size is %u\n", stack_size);
>  
>  	ksft_print_header();
>  	ksft_set_plan(3);

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>

-- 
 i.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ