svn commit: r183943 - user/netchild/misc/src/sbin/recoverdisk
Alexander Leidinger
netchild at FreeBSD.org
Thu Oct 16 10:41:03 UTC 2008
Author: netchild
Date: Thu Oct 16 10:41:02 2008
New Revision: 183943
URL: http://svn.freebsd.org/changeset/base/183943
Log:
I prefer user readable errors in userland utilities.
Modified:
user/netchild/misc/src/sbin/recoverdisk/recoverdisk.c
Modified: user/netchild/misc/src/sbin/recoverdisk/recoverdisk.c
==============================================================================
--- user/netchild/misc/src/sbin/recoverdisk/recoverdisk.c Thu Oct 16 10:40:07 2008 (r183942)
+++ user/netchild/misc/src/sbin/recoverdisk/recoverdisk.c Thu Oct 16 10:41:02 2008 (r183943)
@@ -276,7 +276,8 @@ main(int argc, char * const argv[])
lp->len -= i;
continue;
}
- printf("\n%jd %zu failed %d\n", lp->start, i, errno);
+ printf("\n%jd %zu failed: %s (errno %d)\n", lp->start,
+ i, strerror(errno), errno);
new_lump(lp->start, i, lp->state + 1);
lp->start += i;
lp->len -= i;
More information about the svn-src-user
mailing list