diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-10-15 14:34:09 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-12 13:17:28 -0500 |
commit | 10b69712151203beb774750bafc56c00699c8e58 (patch) | |
tree | 80f23e262280f0dd3905429f664c90ce81ead2b6 | |
parent | 91931f7ed324ea223be560319031dbefddb8b2e7 (diff) | |
download | u-boot-imx-10b69712151203beb774750bafc56c00699c8e58.zip u-boot-imx-10b69712151203beb774750bafc56c00699c8e58.tar.gz u-boot-imx-10b69712151203beb774750bafc56c00699c8e58.tar.bz2 |
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 <maxime.ripard@free-electrons.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | drivers/mtd/mtd_uboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c index c517b9c..2138695 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 } |