Skip to content

Commit

Permalink
cpuid_check.c: improve the printing of usage() to make it easier to use
Browse files Browse the repository at this point in the history
Signed-off-by: Pengfei Xu <[email protected]>
  • Loading branch information
xupengfe authored and ysun committed Jan 26, 2024
1 parent 2733c30 commit 987d2c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/cpuid_check/cpuid_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ int usage(char *progname)
printf(" NUM2: input EBX value in hex\n");
printf(" NUM3: input ECX value in hex\n");
printf(" NUM4: input EDX value in hex\n");
printf(" CHAR5: a|b|c|d, which match with EAX|EBX|ECX|EDX output\n");
printf(" NUM6: bit number in decimal for output CHAR5 register which matched with SPEC\n");
printf(" CHAR5: a|b|c|d indicates the output matching EAX|EBX|ECX|EDX\n");
printf(" NUM6: number of decimal digits in CHAR5 output register matching SPEC\n");
printf("CET SHSTK cpuid check example:\n# %s 7 0 0 0 c 7\n", progname);
exit(2);
}

Expand Down

0 comments on commit 987d2c6

Please sign in to comment.