diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-11-11 16:36:35 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-11-11 10:32:45 +0100 |
commit | 14aa5e63ab989e4f85495e96a74f34d18813caf6 (patch) | |
tree | f9ab236f25f8047216f1ca2754cb4d9e3f7df392 /ubifs-utils/common/hashtable/hashtable.c | |
parent | bc85302b02f8a1af351d05050f9de8a54c68ba09 (diff) |
ubifs-utils: Clean up error message printing functions
Functions 'err_msg' and 'sys_err_msg' are almost same with 'errmsg' and
'sys_errmsg', since 'errmsg' and 'sys_errmsg' can print programe name,
so replace error message printing functions (ubifs-utils) with common
lib functions(include/common.h).
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/common/hashtable/hashtable.c')
-rw-r--r-- | ubifs-utils/common/hashtable/hashtable.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ubifs-utils/common/hashtable/hashtable.c b/ubifs-utils/common/hashtable/hashtable.c index 071afd2..af7fed9 100644 --- a/ubifs-utils/common/hashtable/hashtable.c +++ b/ubifs-utils/common/hashtable/hashtable.c @@ -6,14 +6,10 @@ #include <math.h> #include "ubifs.h" +#include "defs.h" #include "hashtable.h" #include "hashtable_private.h" -/* common.h requires the PROGRAM_NAME macro */ -extern struct ubifs_info info_; -#define PROGRAM_NAME (info_.program_name) -#include "common.h" - /* Credit for primes table: Aaron Krowne http://br.endernet.org/~akrowne/ |