[LTP] [PATCH v3 2/4] bpf: Add map_array helper functions/macro and constify

Cyril Hrubis chrubis@suse.cz
Wed May 5 16:59:24 CEST 2021


Hi!
> +	const int ret = bpf(BPF_MAP_LOOKUP_ELEM, &elem_attr, sizeof(elem_attr));
> +
> +        if (ret) {

Fixed these spaces wrongly used for indentation.

> +		tst_brk(TBROK | TTERRNO,
> +			"Failed array map lookup: [%"PRIu32, *array_indx);

And also this message. There was missing ] at the end of the string and
I've also added the fd=%i to the message as well.

And pushed along with the rest of the patchset, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list