From e04e02cf369357e748472dc449e38503fee01903 Mon Sep 17 00:00:00 2001 From: stas Date: Fri, 7 Jan 2011 18:52:08 +0000 Subject: - Save some space relying on the fact that all ioctl commands prefixes are the same. Suggested by: "Carlos A. M. dos Santos" --- usr.sbin/cpucontrol/cpucontrol.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.sbin/cpucontrol') diff --git a/usr.sbin/cpucontrol/cpucontrol.c b/usr.sbin/cpucontrol/cpucontrol.c index eaf0741..82bbf05 100644 --- a/usr.sbin/cpucontrol/cpucontrol.c +++ b/usr.sbin/cpucontrol/cpucontrol.c @@ -246,19 +246,19 @@ do_msr(const char *cmdarg, const char *dev) switch (op) { case OP_READ: command = CPUCTL_RDMSR; - command_name = "CPUCTL_RDMSR"; + command_name = "RDMSR"; break; case OP_WRITE: command = CPUCTL_WRMSR; - command_name = "CPUCTL_WRMSR"; + command_name = "WRMSR"; break; case OP_OR: command = CPUCTL_MSRSBIT; - command_name = "CPUCTL_MSRSBIT"; + command_name = "MSRSBIT"; break; case OP_AND: command = CPUCTL_MSRCBIT; - command_name = "CPUCTL_MSRCBIT"; + command_name = "MSRCBIT"; break; default: abort(); @@ -271,7 +271,7 @@ do_msr(const char *cmdarg, const char *dev) } error = ioctl(fd, command, &args); if (error < 0) { - WARN(0, "ioctl(%s, %s (%lu))", dev, command_name, command); + WARN(0, "ioctl(%s, CPUCTL_%s (%lu))", dev, command_name, command); close(fd); return (1); } -- cgit v1.1