diff options
Diffstat (limited to 'package/system/mtd/src/trx.c')
-rw-r--r-- | package/system/mtd/src/trx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/mtd/src/trx.c b/package/system/mtd/src/trx.c index 360a1271e3..1f5c52914c 100644 --- a/package/system/mtd/src/trx.c +++ b/package/system/mtd/src/trx.c @@ -81,6 +81,7 @@ trx_fixup(int fd, const char *name) ptr = mmap(NULL, len, PROT_READ|PROT_WRITE, MAP_SHARED, bfd, 0); if (!ptr || (ptr == (void *) -1)) { perror("mmap"); + fprintf(stderr, "Mapping the TRX header failed\n"); goto err1; } @@ -100,7 +101,6 @@ trx_fixup(int fd, const char *name) err1: close(bfd); err: - fprintf(stderr, "Error fixing up TRX header\n"); return -1; } |