summaryrefslogtreecommitdiff
path: root/nandwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'nandwrite.c')
-rw-r--r--nandwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nandwrite.c b/nandwrite.c
index b1a4307..e5de140 100644
--- a/nandwrite.c
+++ b/nandwrite.c
@@ -230,7 +230,7 @@ int main(int argc, char * const argv[])
/* Open the device */
if ((fd = open(mtd_device, O_RDWR)) == -1) {
- perror("open flash");
+ perror(mtd_device);
exit (EXIT_FAILURE);
}
@@ -337,7 +337,7 @@ int main(int argc, char * const argv[])
/* Open the input file */
if ((ifd = open(img, O_RDONLY)) == -1) {
- perror("open input file");
+ perror(img);
goto restoreoob;
}