Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 2017 00:48:28 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r327011 - user/jeff/numa/usr.bin/cpuset
Message-ID:  <201712200048.vBK0mSe8017737@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Wed Dec 20 00:48:28 2017
New Revision: 327011
URL: https://svnweb.freebsd.org/changeset/base/327011

Log:
  Fix a minor output bug.

Modified:
  user/jeff/numa/usr.bin/cpuset/cpuset.c

Modified: user/jeff/numa/usr.bin/cpuset/cpuset.c
==============================================================================
--- user/jeff/numa/usr.bin/cpuset/cpuset.c	Wed Dec 20 00:30:31 2017	(r327010)
+++ user/jeff/numa/usr.bin/cpuset/cpuset.c	Wed Dec 20 00:48:28 2017	(r327011)
@@ -248,12 +248,12 @@ printaffinity(void)
 		err(EXIT_FAILURE, "getaffinity");
 	printf("%s %jd%s mask: ", whichnames[which], (intmax_t)id,
 	    levelnames[level]);
+	printset((struct bitset *)&mask, CPU_SETSIZE);
 	if (dflag)
 		goto out;
 	if (cpuset_getdomain(level, which, id, sizeof(domain), &domain,
 	    &policy) != 0)
 		err(EXIT_FAILURE, "getdomain");
-	printset((struct bitset *)&mask, CPU_SETSIZE);
 	printf("%s %jd%s domain policy: %s mask: ", whichnames[which],
 	    (intmax_t)id, levelnames[level], policynames[policy]);
 	printset((struct bitset *)&domain, DOMAINSET_SETSIZE);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712200048.vBK0mSe8017737>