diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-04-17 16:43:20 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-04-17 16:46:23 +0300 |
commit | 49953500edc32e949b5f567fca67ed5430a68540 (patch) | |
tree | 4b2ba0eca5febffeea6c8d046d78f8eb02a9b71f /ubi-utils/new-utils/src/libubi.c | |
parent | 7280a34fc4dc7a40e6fc0b3317fb09ec90413af7 (diff) |
ubi-utils: use common.h in libubi
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/src/libubi.c')
-rw-r--r-- | ubi-utils/new-utils/src/libubi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ubi-utils/new-utils/src/libubi.c b/ubi-utils/new-utils/src/libubi.c index f0cbc9e..5e6f9b1 100644 --- a/ubi-utils/new-utils/src/libubi.c +++ b/ubi-utils/new-utils/src/libubi.c @@ -32,6 +32,9 @@ #include <limits.h> #include "libubi.h" #include "libubi_int.h" +#include "common.h" + +#define PROGRAM_NAME "libubi" /** * mkpath - compose full path from 2 given components. @@ -628,9 +631,8 @@ libubi_t libubi_open(int required) if (read_positive_int(lib->ubi_version, &version)) goto out_error; if (version != LIBUBI_UBI_VERSION) { - fprintf(stderr, "LIBUBI: this library was made for UBI version " - "%d, but UBI version %d is detected\n", - LIBUBI_UBI_VERSION, version); + errmsg("this library was made for UBI version %d, but UBI " + "version %d is detected\n", LIBUBI_UBI_VERSION, version); goto out_error; } |