While devinfo can be used to deduce the unallocated size before the first partition, let's just print it out on error to improve the user experience. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- arch/arm/mach-rockchip/bbu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/bbu.c b/arch/arm/mach-rockchip/bbu.c index 0f50fd1282ed..f9681aad1aa4 100644 --- a/arch/arm/mach-rockchip/bbu.c +++ b/arch/arm/mach-rockchip/bbu.c @@ -63,8 +63,8 @@ static int rockchip_bbu_mmc_handler(struct bbu_handler *handler, space = cdev_unallocated_space(cdev_by_name(cdevname)); if (space < IMG_OFFSET_0 + data->len) { - pr_err("Unallocated space on %s is too small for one image\n", - data->devicefile); + pr_err("Unallocated space on %s (%lld) is too small for one image\n", + data->devicefile, space); return -ENOSPC; } -- 2.39.2