[LTP] [PATCH 1/7] lib: safe_macros: Fix memalign() failure error format

Andrea Cervesato andrea.cervesato@suse.com
Wed Jul 9 15:11:32 CEST 2025


Hi!

Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>

On 7/8/25 10:11 PM, Ricardo B. Marlière via ltp wrote:
> From: Ricardo B. Marlière <rbm@suse.com>
>
> Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
> ---
>   lib/safe_macros.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/safe_macros.c b/lib/safe_macros.c
> index 6946cc5bcb94202a67fcb986a504e77ab0a27738..57bc0bc749712f1b890594123b6b9f3cabce821a 100644
> --- a/lib/safe_macros.c
> +++ b/lib/safe_macros.c
> @@ -821,7 +821,7 @@ void *safe_memalign(const char *file, const int lineno,
>   
>   	if (rval == NULL) {
>   		tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn,
> -			"memalign() failed");
> +			"memalign(%zu,%zu) failed", alignment, size);
>   	}
>   
>   	return rval;
>


More information about the ltp mailing list