From ef1e909207cd901871d60a916e4b7ff7b3e97d7d Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 16 Dec 2008 09:52:40 +0200 Subject: libubi: remove some too verbose messages Signed-off-by: Artem Bityutskiy --- ubi-utils/new-utils/src/libubi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ubi-utils/new-utils/src/libubi.c b/ubi-utils/new-utils/src/libubi.c index d50189b..2c80fea 100644 --- a/ubi-utils/new-utils/src/libubi.c +++ b/ubi-utils/new-utils/src/libubi.c @@ -80,7 +80,7 @@ static int read_positive_ll(const char *file, long long *value) fd = open(file, O_RDONLY); if (fd == -1) - return sys_errmsg("cannot open \"%s\"", file); + return -1; rd = read(fd, buf, 50); if (rd == -1) { @@ -159,7 +159,7 @@ static int read_data(const char *file, void *buf, int buf_len) fd = open(file, O_RDONLY); if (fd == -1) - return sys_errmsg("cannot open \"%s\"", file); + return -1; rd = read(fd, buf, buf_len); if (rd == -1) { @@ -833,7 +833,7 @@ int ubi_get_info(libubi_t desc, struct ubi_info *info) */ sysfs_ubi = opendir(lib->sysfs_ubi); if (!sysfs_ubi) - return sys_errmsg("cannot open %s", lib->sysfs_ubi); + return -1; info->lowest_dev_num = INT_MAX; while (1) { -- cgit v1.2.3