From: Maxime Ripard Date: Thu, 15 Oct 2015 12:34:09 +0000 (+0200) Subject: mtd: uboot: Add meaningful error message X-Git-Tag: v2016.01-rc1~58 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=10b69712151203beb774750bafc56c00699c8e58;p=u-boot mtd: uboot: Add meaningful error message The current error message in get_part if CONFIG_MTDPARTS is disabled is "offset is not a number" which is confusing and doesn't help at all. Change that for something that might give a hint on what's going on. Signed-off-by: Maxime Ripard Reviewed-by: Tom Rini --- diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c index c517b9c65d..21386951ef 100644 --- a/drivers/mtd/mtd_uboot.c +++ b/drivers/mtd/mtd_uboot.c @@ -37,7 +37,7 @@ static int get_part(const char *partname, int *idx, loff_t *off, loff_t *size, return 0; #else - puts("offset is not a number\n"); + puts("mtdparts support missing.\n"); return -1; #endif }