X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffstools.git;a=blobdiff_plain;f=snapshot.c;h=df555e2d7d798c66f4528fea315db34437c99fef;hp=bb44cd3fee288d040e66c980001568f801fc43d7;hb=c4a3c9785e9e554f5b89dd95c3071bd4f30cbdbc;hpb=9668e2ef2855ab95d8f2b2868d72c8ca5d742047 diff --git a/snapshot.c b/snapshot.c index bb44cd3..df555e2 100644 --- a/snapshot.c +++ b/snapshot.c @@ -136,7 +136,7 @@ snapshot_mark(int argc, char **argv) close(fd); if (sz != 1) { - ULOG_ERR("writing %s failed: %s\n", v->blk, strerror(errno)); + ULOG_ERR("writing %s failed: %m\n", v->blk); return -1; }