diff options
| author | Nikita Shubin <[email protected]> | 2022-02-11 14:11:54 +0300 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-02-15 20:59:38 +0530 |
| commit | f2ccf2f783b43e8ca2b42cdeade7663599284a86 (patch) | |
| tree | 82cc44778551db003ab58188c9d50f5f9be38dc8 /lib | |
| parent | 3a69cc1487dc318aadede61c7e580d6fb1109fe8 (diff) | |
lib: sbi: verbose sbi_domain_root_add_memregion
Be more verbose on region confict, print addresses in conflict.
Signed-off-by: Nikita Shubin <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sbi/sbi_domain.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c index a1ac1bbc..4e4c1e1a 100644 --- a/lib/sbi/sbi_domain.c +++ b/lib/sbi/sbi_domain.c @@ -471,8 +471,12 @@ int sbi_domain_root_add_memregion(const struct sbi_domain_memregion *reg) /* Check for conflicts */ sbi_domain_for_each_memregion(&root, nreg) { - if (is_region_conflict(reg, nreg)) - return SBI_EINVAL; + if (is_region_conflict(reg, nreg)) { + sbi_printf("%s: is_region_conflict check failed" + " 0x%lx conflicts existing 0x%lx\n", __func__, + reg->base, nreg->base); + return SBI_EALREADY; + } } /* Append the memregion to root memregions */ |
