projects
/
project
/
fstools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fstools: Replace strerror(errno) with %m format.
[project/fstools.git]
/
libfstools
/
mtd.c
diff --git
a/libfstools/mtd.c
b/libfstools/mtd.c
index
2603a15
..
77c71ee
100644
(file)
--- a/
libfstools/mtd.c
+++ b/
libfstools/mtd.c
@@
-198,7
+198,7
@@
static int mtd_volume_identify(struct volume *v)
sz = read(p->fd, &deadc0de, sizeof(deadc0de));
if (sz != sizeof(deadc0de)) {
sz = read(p->fd, &deadc0de, sizeof(deadc0de));
if (sz != sizeof(deadc0de)) {
- ULOG_ERR("reading %s failed: %
s\n", v->name, strerror(errno)
);
+ ULOG_ERR("reading %s failed: %
m\n", v->name
);
return -1;
}
return -1;
}
@@
-275,7
+275,7
@@
static int mtd_volume_init(struct volume *v)
ret = ioctl(p->fd, MEMGETINFO, &mtdinfo);
if (ret) {
ret = ioctl(p->fd, MEMGETINFO, &mtdinfo);
if (ret) {
- ULOG_ERR("ioctl(%d, MEMGETINFO) failed: %
s\n", p->fd, strerror(errno)
);
+ ULOG_ERR("ioctl(%d, MEMGETINFO) failed: %
m\n", p->fd
);
} else {
struct erase_info_user mtdlock;
} else {
struct erase_info_user mtdlock;