summaryrefslogtreecommitdiff
path: root/test/cmd
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2024-12-18 09:02:33 +0200
committerTom Rini <[email protected]>2024-12-30 13:21:55 -0600
commit400c34db8957bbe49b15dcc0310697f829c63e01 (patch)
tree6719b204d1bf23460d93f1d9ace69165f5089211 /test/cmd
parent900a8951c3b6035c25632438ebc7240cbc77883c (diff)
lmb: Rename free_mem to available_mem
free_mem is a misnomer. We never update it with the free memory for LMB. Instead, it describes all available memory and is checked against used_mem to decide whether an area is free or not. So let's rename this field to better match its usage. Reviewed-by: Sam Protsenko <[email protected]> Tested-by: Sam Protsenko <[email protected]> Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'test/cmd')
-rw-r--r--test/cmd/bdinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c
index 014391b38ac..76429485708 100644
--- a/test/cmd/bdinfo.c
+++ b/test/cmd/bdinfo.c
@@ -131,7 +131,7 @@ static int lmb_test_dump_all(struct unit_test_state *uts)
struct lmb *lmb = lmb_get();
ut_assert_nextline("lmb_dump_all:");
- ut_assertok(lmb_test_dump_region(uts, &lmb->free_mem, "memory"));
+ ut_assertok(lmb_test_dump_region(uts, &lmb->available_mem, "memory"));
ut_assertok(lmb_test_dump_region(uts, &lmb->used_mem, "reserved"));
return 0;