1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

cpucontrol: print more useful information when MSR access fails.

Instead of providing ioctl cmd value, which has no meaning to user,
print MSR number.  The later is what the user expects in this place
even.

Reported by:	pstef
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2019-11-13 22:43:11 +00:00
parent c4f056e8ea
commit 7672c254eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354697

View File

@ -307,7 +307,7 @@ do_msr(const char *cmdarg, const char *dev)
}
error = ioctl(fd, command, &args);
if (error < 0) {
WARN(0, "ioctl(%s, CPUCTL_%s (%lu))", dev, command_name, command);
WARN(0, "ioctl(%s, CPUCTL_%s (%#x))", dev, command_name, msr);
close(fd);
return (1);
}