Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from sikarash/bugfix
Browse files Browse the repository at this point in the history
Expand the upper limit of processor number from 255
  • Loading branch information
jinksong committed May 10, 2016
2 parents 19a8432 + f597fe3 commit 0fcbda4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int main(int argc, char *argv[])
exit(127);
} else if (argc == 2) {
cpu = strtoul(argv[1], &endptr, 0);
if (*endptr || cpu > 255) {
if (*endptr || cpu > 5119) {
usage();
exit(127);
}
Expand Down
2 changes: 1 addition & 1 deletion rdmsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ int main(int argc, char *argv[])
break;
case 'p':
arg = strtoul(optarg, &endarg, 0);
if (*endarg || arg > 255) {
if (*endarg || arg > 5119) {
usage();
exit(127);
}
Expand Down
2 changes: 1 addition & 1 deletion wrmsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int main(int argc, char *argv[])
break;
case 'p':
arg = strtoul(optarg, &endarg, 0);
if (*endarg || arg > 255) {
if (*endarg || arg > 5119) {
usage();
exit(127);
}
Expand Down

0 comments on commit 0fcbda4

Please sign in to comment.