Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277311
b: refs/heads/master
c: 9dde9dc
h: refs/heads/master
i:
  277309: cefeda9
  277307: 3badfd1
  277303: 3df38f9
  277295: adbd618
  277279: 43b0f57
  277247: 62e164e
v: v3
  • Loading branch information
Masami Hiramatsu authored and Ingo Molnar committed Dec 5, 2011
1 parent 888d299 commit 1d5ae95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: a9c373d03326e98c5f05ca64a1108790d25e28a9
refs/heads/master: 9dde9dc0a81c7aeb863b35121d09011f09b4897c
7 changes: 4 additions & 3 deletions trunk/arch/x86/tools/insn_sanity.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static void usage(const char *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");
fprintf(stderr, "\t-v Verbose mode\n");
fprintf(stderr, "\t-v Verbosity(-vv dumps any decoded result)\n");
fprintf(stderr, "\t-s Give a random seed (and iteration number)\n");
fprintf(stderr, "\t-m Give a maximum iteration number\n");
fprintf(stderr, "\t-i Give an input file with decoded binary\n");
Expand Down Expand Up @@ -188,7 +188,7 @@ static void parse_args(int argc, char **argv)
x86_64 = 0;
break;
case 'v':
verbose = 1;
verbose++;
break;
case 'i':
if (strcmp("-", optarg) == 0)
Expand Down Expand Up @@ -264,7 +264,8 @@ int main(int argc, char **argv)
errors++;
} else if (verbose && !insn_complete(&insn))
dump_stream(stdout, "Info: Found an undecodable input", i, insn_buf, &insn);

else if (verbose >= 2)
dump_insn(stdout, &insn);
insns++;
}

Expand Down

0 comments on commit 1d5ae95

Please sign in to comment.