Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2018 06:42:13 +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: r334704 - head/usr.bin/top
Message-ID:  <201806060642.w566gD95002094@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Wed Jun  6 06:42:12 2018
New Revision: 334704
URL: https://svnweb.freebsd.org/changeset/base/334704

Log:
  top(1): make error message happy
  
  We don't use a "size" variable, so just don't report it.
  
  Reported by:	bapt

Modified:
  head/usr.bin/top/machine.c

Modified: head/usr.bin/top/machine.c
==============================================================================
--- head/usr.bin/top/machine.c	Wed Jun  6 05:17:21 2018	(r334703)
+++ head/usr.bin/top/machine.c	Wed Jun  6 06:42:12 2018	(r334704)
@@ -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 %zu bytes", size);
+		err(1, "calloc for kern.smp.maxcpus", size);
 	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?201806060642.w566gD95002094>