Date: Wed, 6 Jun 2018 07:13:27 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334706 - head/usr.bin/top Message-ID: <201806060713.w567DRof018863@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806060713.w567DRof018863>