Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/cpuctl Fix wrong err(3) message (no such thing as I...
details: https://anonhg.NetBSD.org/src/rev/d21f3c6a512b
branches: trunk
changeset: 769903:d21f3c6a512b
user: jruoho <jruoho%NetBSD.org@localhost>
date: Mon Sep 26 06:51:57 2011 +0000
description:
Fix wrong err(3) message (no such thing as IOC_CPU_GETINFO).
diffstat:
usr.sbin/cpuctl/cpuctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7c1ed03cef36 -r d21f3c6a512b usr.sbin/cpuctl/cpuctl.c
--- a/usr.sbin/cpuctl/cpuctl.c Mon Sep 26 03:02:44 2011 +0000
+++ b/usr.sbin/cpuctl/cpuctl.c Mon Sep 26 06:51:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuctl.c,v 1.17 2011/09/11 14:54:49 jdc Exp $ */
+/* $NetBSD: cpuctl.c,v 1.18 2011/09/26 06:51:57 jruoho Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#ifndef lint
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cpuctl.c,v 1.17 2011/09/11 14:54:49 jdc Exp $");
+__RCSID("$NetBSD: cpuctl.c,v 1.18 2011/09/26 06:51:57 jruoho Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -247,7 +247,7 @@
for (i = 0; i < cnt; i++) {
cs.cs_id = i;
if (ioctl(fd, IOC_CPU_GETSTATE, &cs) < 0)
- err(EXIT_FAILURE, "IOC_CPU_GETINFO");
+ err(EXIT_FAILURE, "IOC_CPU_GETSTATE");
if (ioctl(fd, IOC_CPU_MAPID, &cs.cs_id) < 0)
err(EXIT_FAILURE, "IOC_CPU_MAPID");
if (cs.cs_online)
Home |
Main Index |
Thread Index |
Old Index