summaryrefslogtreecommitdiffstats
path: root/pbl
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-06-11 11:12:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-13 08:14:56 +0200
commita8a508270be28d5d234e760cc3406cfad188b1d2 (patch)
tree8e603d5ed564ae8dd7078c5ee6962a7ab35ee85c /pbl
parentafa8665f9f1a5666c63db762fcad53e7425126ef (diff)
downloadbarebox-a8a508270be28d5d234e760cc3406cfad188b1d2.tar.gz
barebox-a8a508270be28d5d234e760cc3406cfad188b1d2.tar.xz
commands: don't use stale errno when calling fb_open
fb_open returns a pointer and doesn't populate errno, which will result in a stale errno being evaluated by perror() on failure. Fix this by using strerror with the proper argument instead at call sites. While at it, correct the message prefix typo (s/fb_open/fb_open/). Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'pbl')
0 files changed, 0 insertions, 0 deletions