summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ubi-utils/src/common.h2
-rw-r--r--ubi-utils/src/libubi_int.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ubi-utils/src/common.h b/ubi-utils/src/common.h
index 203238e..a3fc51f 100644
--- a/ubi-utils/src/common.h
+++ b/ubi-utils/src/common.h
@@ -51,7 +51,7 @@ extern "C" {
#define sys_errmsg(fmt, ...) ({ \
int _err = errno; \
fprintf(stderr, PROGRAM_NAME " error: " fmt "\n", ##__VA_ARGS__); \
- fprintf(stderr, "error %d (%s)", _err, strerror(_err)); \
+ fprintf(stderr, "error %d (%s)\n", _err, strerror(_err)); \
-1; \
})
diff --git a/ubi-utils/src/libubi_int.h b/ubi-utils/src/libubi_int.h
index 5b186a7..dab3e62 100644
--- a/ubi-utils/src/libubi_int.h
+++ b/ubi-utils/src/libubi_int.h
@@ -40,7 +40,7 @@ extern "C" {
#define sys_errmsg(fmt, ...) ({ \
int _err = errno; \
fprintf(stderr, "libubi error: " fmt "\n", ##__VA_ARGS__); \
- fprintf(stderr, "error %d (%s)", _err, strerror(_err)); \
+ fprintf(stderr, "error %d (%s)\n", _err, strerror(_err)); \
-1; \
})