diff options
author | Maxim Konovalov <maxim@FreeBSD.org> | 2008-01-12 20:57:19 +0000 |
---|---|---|
committer | Maxim Konovalov <maxim@FreeBSD.org> | 2008-01-12 20:57:19 +0000 |
commit | e08b1089a6ca4fdb615ae4c39cc6b7ada3f7fe64 (patch) | |
tree | 00995599c749569872ecfd2c3765b634860c5813 /usr.sbin/iostat | |
parent | 2123fbe6cdec25a4d99a67349623b831f3f111e9 (diff) | |
download | src-e08b1089a6ca4fdb615ae4c39cc6b7ada3f7fe64.tar.gz src-e08b1089a6ca4fdb615ae4c39cc6b7ada3f7fe64.zip |
o Fix a typo. errx() -> err().
Submitted by: das
Notes
Notes:
svn path=/head/; revision=175252
Diffstat (limited to 'usr.sbin/iostat')
-rw-r--r-- | usr.sbin/iostat/iostat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c index 2ed804952e46..43d297e5df84 100644 --- a/usr.sbin/iostat/iostat.c +++ b/usr.sbin/iostat/iostat.c @@ -737,8 +737,8 @@ devstats(int perf_select, long double etime, int havelast) if (xflag > 0) { if (asprintf(&devname, "%s%d", cur.dinfo->devices[di].device_name, - cur.dinfo->devices[di].unit_number) == 1) - errx(1, "asprintf() failed (out of memory?)"); + cur.dinfo->devices[di].unit_number) == -1) + err(1, "asprintf"); /* * If zflag is set, skip any devices with zero I/O. */ |