summaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-12-16 09:52:40 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-12-16 09:52:40 +0200
commitef1e909207cd901871d60a916e4b7ff7b3e97d7d (patch)
tree21963dd11a4ac5e040aebe832c1cb4919879a568 /ubi-utils
parent3c75b1f1f0b2839e2c62bf02bf0385bea1d87315 (diff)
libubi: remove some too verbose messages
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/new-utils/src/libubi.c6
1 files 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) {