svn commit: r334706 - head/usr.bin/top
Eitan Adler
eadler at FreeBSD.org
Wed Jun 6 07:13:28 UTC 2018
Author: eadler
Date: Wed Jun 6 07:13:27 2018
New Revision: 334706
URL: https://svnweb.freebsd.org/changeset/base/334706
Log:
top(1): fix err again
I am amazed at my ability to get a one-line error reporting line wrong
thrice.
Modified:
head/usr.bin/top/machine.c
Modified: head/usr.bin/top/machine.c
==============================================================================
--- head/usr.bin/top/machine.c Wed Jun 6 07:04:40 2018 (r334705)
+++ head/usr.bin/top/machine.c Wed Jun 6 07:13:27 2018 (r334706)
@@ -379,7 +379,7 @@ machine_init(struct statics *statics)
GETSYSCTL("kern.smp.maxcpus", maxcpu);
times = calloc(maxcpu * CPUSTATES, sizeof(long));
if (times == NULL)
- err(1, "calloc for kern.smp.maxcpus", size);
+ err(1, "calloc for kern.smp.maxcpus");
size = sizeof(long) * maxcpu * CPUSTATES;
if (sysctlbyname("kern.cp_times", times, &size, NULL, 0) == -1)
err(1, "sysctlbyname kern.cp_times");
More information about the svn-src-all
mailing list