summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2020-01-15 23:38:29 +0100
committerPali Rohár <pali.rohar@gmail.com>2020-01-15 23:38:29 +0100
commite94279eecbfdd1988912ac7ce24e6d4d702695a1 (patch)
tree23bd8ffb6af36878c4ff7d462126fd518766c569
parent52793b733de2ce5176b61d332b31e47ecfb844f0 (diff)
download0xFFFF-e94279eecbfdd1988912ac7ce24e6d4d702695a1.tar.bz2
local: Do not show error message about missing dump files which were skipped
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a43512b..6c64e6e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -421,6 +421,8 @@ int main(int argc, char **argv) {
enum device detected_device = DEVICE_UNKNOWN;
int16_t detected_hwrev = -1;
+ struct stat st;
+
int i;
char buf[512];
char * ptr = NULL;
@@ -1259,7 +1261,7 @@ int main(int argc, char **argv) {
for ( i = 0; i < IMAGE_COUNT; ++i ) {
- if ( ! image_tmp_name(i) )
+ if ( ! image_tmp_name(i) || ( stat(image_tmp_name(i), &st) < 0 && errno == ENOENT ) )
continue;
buf[0] = 0;