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_int.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'ubi-utils/new-utils/src/libubi_int.h') diff --git a/ubi-utils/new-utils/src/libubi_int.h b/ubi-utils/new-utils/src/libubi_int.h index f52797a..2e664b8 100644 --- a/ubi-utils/new-utils/src/libubi_int.h +++ b/ubi-utils/new-utils/src/libubi_int.h @@ -30,20 +30,6 @@ extern "C" { #endif -/* Error messages */ -#define errmsg(fmt, ...) ({ \ - fprintf(stderr, "libubi error: " fmt "\n", ##__VA_ARGS__); \ - -1; \ -}) - -/* System error messages */ -#define sys_errmsg(fmt, ...) ({ \ - int _err = errno; \ - fprintf(stderr, "libubi error: " fmt "\n", ##__VA_ARGS__); \ - fprintf(stderr, "error %d (%s)\n", _err, strerror(_err)); \ - -1; \ -}) - /* * The below are pre-define UBI file and directory names. * -- cgit v1.2.3