diff options
author | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-04-30 13:47:20 +0200 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-04-30 13:47:20 +0200 |
commit | a9e47de4d292335a34f96fb1ffd1bb9e13dd29bf (patch) | |
tree | eaf4b5777d457ada41865f888dd55aa661b2af65 | |
parent | 85f6551b230771849c959f67779d719794be7e49 (diff) |
common: fdt: Remove wrong error message.
In case of generated reserved memory areas, we might encounter
the case that we have an unused region with size 0.
In this case memory reservation clearly fails, but that should
not be considered as error.
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rw-r--r-- | common/image-fdt.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index 01186aeac7..26b80d66d3 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -78,9 +78,11 @@ static void boot_fdt_reserve_region(struct lmb *lmb, uint64_t addr, debug(" reserving fdt memory region: addr=%llx size=%llx\n", (unsigned long long)addr, (unsigned long long)size); } else { - puts("ERROR: reserving fdt memory region failed "); - printf("(addr=%llx size=%llx)\n", - (unsigned long long)addr, (unsigned long long)size); + if (addr && size) { + puts("ERROR: reserving fdt memory region failed "); + printf("(addr=%llx size=%llx)\n", + (unsigned long long)addr, (unsigned long long)size); + } } } |