[PATCH V3 2/3] test: cmd: nvedit: Add basic unit tests
Christoph Niedermaier
cniedermaier at dh-electronics.com
Fri Jun 6 23:40:28 CEST 2025
From: Tom Rini <trini at konsulko.com>
Sent: Tuesday, June 3, 2025 10:13 PM
> On Fri, May 09, 2025 at 09:00:42PM +0200, Christoph Niedermaier wrote:
>
>> Add basic unit tests for argument checking of the env command.
>>
>> Signed-off-by: Christoph Niedermaier <cniedermaier at dh-electronics.com>
> [snip]
>> + /* Binary format with checksum and with wrong size */
>> + ut_asserteq(1, run_commandf("env import -c ${loadaddr} %x", offsetof(env_t, data)));
>
> This will be "unsigned long int" on 64bit or "unsigned int" on 32bit,
> and so we can't use %x here.
I will have a look at it and make a new version. I may not get round to
it straight away.
Thanks and regards
Christoph
More information about the U-Boot
mailing list