projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91931f7
)
mtd: uboot: Add meaningful error message
author
Maxime Ripard
<maxime.ripard@free-electrons.com>
Thu, 15 Oct 2015 12:34:09 +0000
(14:34 +0200)
committer
Tom Rini
<trini@konsulko.com>
Thu, 12 Nov 2015 18:17:28 +0000
(13:17 -0500)
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>
drivers/mtd/mtd_uboot.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtd_uboot.c
b/drivers/mtd/mtd_uboot.c
index c517b9c65d685a6dcb8e7d2197a5a25a8f19f5ca..21386951efd5a80edb66345adb845d77853ce0fb 100644
(file)
--- 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
}