From 49953500edc32e949b5f567fca67ed5430a68540 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 17 Apr 2008 16:43:20 +0300 Subject: ubi-utils: use common.h in libubi Signed-off-by: Artem Bityutskiy --- ubi-utils/new-utils/src/libubi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ubi-utils/new-utils/src/libubi.c') 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 #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; } -- cgit v1.2.3