summaryrefslogtreecommitdiffstats
path: root/print_wiki.c
diff options
context:
space:
mode:
authorDavid Hendricks <david.hendricks@gmail.com>2018-05-23 21:50:18 -0700
committerNico Huber <nico.h@gmx.de>2018-06-24 11:47:50 +0000
commitb0247b3acbc7d8d9f8da1db48a9b81c5f2e24a38 (patch)
tree27ecfdd694592aab18bec64d887a8cb65c1ae9e2 /print_wiki.c
parenta75a2edc05a006c10caa24ccbee12c2b3ddaee66 (diff)
downloadflashrom-b0247b3acbc7d8d9f8da1db48a9b81c5f2e24a38.tar.gz
flashrom-b0247b3acbc7d8d9f8da1db48a9b81c5f2e24a38.tar.bz2
flashrom-b0247b3acbc7d8d9f8da1db48a9b81c5f2e24a38.zip
linux_mtd: Bail out early if sysfs node doesn't exist
This checks that the MTD sysfs node we will use actually exists prior to calling setup code. Although the setup code will eventually catch such an error, we need to think about the use case before printing a possibly irrelevant/confusing error message to the terminal. This patch makes it so that we only print an error message if the user specifies a non-existent MTD device. Otherwise, the failure is considered benign and we only print a debug message prior to bailing out. Change-Id: I8dc965eecc68cd305a989016869c688fe1a3921f Signed-off-by: David Hendricks <dhendricks@fb.com> Reviewed-on: https://review.coreboot.org/26500 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'print_wiki.c')
0 files changed, 0 insertions, 0 deletions