mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 23:06:15 +00:00
test: use %zd for size_t in mbr_test_run()
For printing size_t we must use %zd and not %ld to avoid a -Wformat error on 32-bit systems. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
20b23f049f
commit
5430a5f67e
1 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ static int mbr_test_run(struct unit_test_state *uts)
|
|||
strlen(mbr_parts_p3) +
|
||||
max(strlen(mbr_parts_p4), strlen(mbr_parts_p5)) +
|
||||
strlen(mbr_parts_tail);
|
||||
ut_assertf(sizeof(mbr_parts_buf) >= mbr_parts_max, "Buffer avail: %ld; buffer req: %ld\n",
|
||||
ut_assertf(sizeof(mbr_parts_buf) >= mbr_parts_max, "Buffer avail: %zd; buffer req: %ld\n",
|
||||
sizeof(mbr_parts_buf), mbr_parts_max);
|
||||
|
||||
mbr_wbuf = map_sysmem(mbr_wa, BLKSZ);
|
||||
|
|
Loading…
Add table
Reference in a new issue