From f2ccf2f783b43e8ca2b42cdeade7663599284a86 Mon Sep 17 00:00:00 2001 From: Nikita Shubin Date: Fri, 11 Feb 2022 14:11:54 +0300 Subject: lib: sbi: verbose sbi_domain_root_add_memregion Be more verbose on region confict, print addresses in conflict. Signed-off-by: Nikita Shubin Reviewed-by: Xiang W Reviewed-by: Anup Patel --- include/sbi/sbi_domain.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/sbi/sbi_domain.h b/include/sbi/sbi_domain.h index 15e3a539..b90f59c7 100644 --- a/include/sbi/sbi_domain.h +++ b/include/sbi/sbi_domain.h @@ -174,7 +174,9 @@ int sbi_domain_register(struct sbi_domain *dom, * Add a memory region to the root domain * @param reg pointer to the memory region to be added * - * @return 0 on success and negative error code on failure + * @return 0 on success + * @return SBI_EALREADY if memory region conflicts with existing + * @return SBI_EINVAL otherwise */ int sbi_domain_root_add_memregion(const struct sbi_domain_memregion *reg); -- cgit v1.3.1