diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-02-16 15:06:31 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-02-16 15:08:31 +0200 |
commit | ef644090223e5983ca2492850354c1390e3368d1 (patch) | |
tree | 20d2306dfb8eaacde8ae3d6affe658f006ec971b /ubi-utils/src | |
parent | e745cc6667a05da606af5c8f5c9fd26fbb811ad3 (diff) |
Fix error message printing
Add missing "\n" to get rid of ugliness like:
[dedekind@golum test]$ ubinize -o ubi.img -m 2048 -p 128KiB -s 512 ubinize.cfg
ubinize error: cannot stat "/home/dedekind/git/ubifs.img"
error 2 (No such file or directory)[dedekind@golum test]$
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src')
-rw-r--r-- | ubi-utils/src/common.h | 2 | ||||
-rw-r--r-- | ubi-utils/src/libubi_int.h | 2 |
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; \ }) |