Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349497
b: refs/heads/master
c: 55a6e62
h: refs/heads/master
i:
  349495: 2626424
v: v3
  • Loading branch information
Andrew Morton authored and Ingo Molnar committed Jan 24, 2013
1 parent 7940ec1 commit 87e74a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0927b482ae69acb7605f6be1ad3860b657512fbd
refs/heads/master: 55a6e622e66a27ab106fae00cac15ba630e7fbd4
10 changes: 8 additions & 2 deletions trunk/arch/x86/tools/insn_sanity.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static FILE *input_file; /* Input file name */
static void usage(const char *err)
{
if (err)
fprintf(stderr, "Error: %s\n\n", err);
fprintf(stderr, "%s: Error: %s\n\n", prog, err);
fprintf(stderr, "Usage: %s [-y|-n|-v] [-s seed[,no]] [-m max] [-i input]\n", prog);
fprintf(stderr, "\t-y 64bit mode\n");
fprintf(stderr, "\t-n 32bit mode\n");
Expand Down Expand Up @@ -269,7 +269,13 @@ int main(int argc, char **argv)
insns++;
}

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);
fprintf(stdout, "%s: %s: decoded and checked %d %s instructions with %d errors (seed:0x%x)\n",
prog,
(errors) ? "Failure" : "Success",
insns,
(input_file) ? "given" : "random",
errors,
seed);

return errors ? 1 : 0;
}

0 comments on commit 87e74a4

Please sign in to comment.