shell: print error when flash device cannot be probed
This commit is contained in:
parent
0bc1146ffd
commit
db3de90f24
1 changed files with 3 additions and 1 deletions
|
@ -82,7 +82,9 @@ static void do_flash_probe(const char *s)
|
|||
flash = NULL;
|
||||
}
|
||||
|
||||
flash = flash_probe();
|
||||
if (!(flash = flash_probe())) {
|
||||
fprintf(stderr, "error: unable to probe flash device.\n");
|
||||
}
|
||||
}
|
||||
|
||||
static void do_flash_read(const char *s)
|
||||
|
|
Loading…
Add table
Reference in a new issue