diff options
| -rw-r--r-- | arch/x86/tools/insn_sanity.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/x86/tools/insn_sanity.c b/arch/x86/tools/insn_sanity.c index cc2f8c131286..872eb60e7806 100644 --- a/arch/x86/tools/insn_sanity.c +++ b/arch/x86/tools/insn_sanity.c | |||
| @@ -55,7 +55,7 @@ static FILE *input_file; /* Input file name */ | |||
| 55 | static void usage(const char *err) | 55 | static void usage(const char *err) |
| 56 | { | 56 | { |
| 57 | if (err) | 57 | if (err) |
| 58 | fprintf(stderr, "Error: %s\n\n", err); | 58 | fprintf(stderr, "%s: Error: %s\n\n", prog, err); |
| 59 | fprintf(stderr, "Usage: %s [-y|-n|-v] [-s seed[,no]] [-m max] [-i input]\n", prog); | 59 | fprintf(stderr, "Usage: %s [-y|-n|-v] [-s seed[,no]] [-m max] [-i input]\n", prog); |
| 60 | fprintf(stderr, "\t-y 64bit mode\n"); | 60 | fprintf(stderr, "\t-y 64bit mode\n"); |
| 61 | fprintf(stderr, "\t-n 32bit mode\n"); | 61 | fprintf(stderr, "\t-n 32bit mode\n"); |
| @@ -269,7 +269,13 @@ int main(int argc, char **argv) | |||
| 269 | insns++; | 269 | insns++; |
| 270 | } | 270 | } |
| 271 | 271 | ||
| 272 | fprintf(stdout, "%s: decoded and checked %d %s instructions with %d errors (seed:0x%x)\n", (errors) ? "Failure" : "Success", insns, (input_file) ? "given" : "random", errors, seed); | 272 | fprintf(stdout, "%s: %s: decoded and checked %d %s instructions with %d errors (seed:0x%x)\n", |
| 273 | prog, | ||
| 274 | (errors) ? "Failure" : "Success", | ||
| 275 | insns, | ||
| 276 | (input_file) ? "given" : "random", | ||
| 277 | errors, | ||
| 278 | seed); | ||
| 273 | 279 | ||
| 274 | return errors ? 1 : 0; | 280 | return errors ? 1 : 0; |
| 275 | } | 281 | } |
