Commit 10b69712151203beb774750bafc56c00699c8e58

Authored by Maxime Ripard
Committed by Tom Rini
1 parent 91931f7ed3

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mtd/mtd_uboot.c
... ... @@ -37,7 +37,7 @@
37 37  
38 38 return 0;
39 39 #else
40   - puts("offset is not a number\n");
  40 + puts("mtdparts support missing.\n");
41 41 return -1;
42 42 #endif
43 43 }