diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-04-15 07:28:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-04-16 13:05:40 +0200 |
commit | 702504f04c78aa858007c18490d0d3dfaca6f290 (patch) | |
tree | 2fac006f046f7d4098e6b8d82a355e141705341c | |
parent | 66e0e85369862edc6d1a5785d0576c82e13af5aa (diff) | |
download | barebox-702504f04c78aa858007c18490d0d3dfaca6f290.tar.gz barebox-702504f04c78aa858007c18490d0d3dfaca6f290.tar.xz |
ARM: Rockchip: bbu: output unallocated space size on error
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@pengutronix.de>
Link: https://lore.barebox.org/20240415052815.366527-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-rockchip/bbu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-rockchip/bbu.c b/arch/arm/mach-rockchip/bbu.c index 0f50fd1282..f9681aad1a 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; } |