diff options
-rw-r--r-- | arch/x86/tools/insn_sanity.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/tools/insn_sanity.c b/arch/x86/tools/insn_sanity.c index b6720d6b38cb..cc2f8c131286 100644 --- a/arch/x86/tools/insn_sanity.c +++ b/arch/x86/tools/insn_sanity.c | |||
@@ -59,7 +59,7 @@ static void usage(const char *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"); |
62 | fprintf(stderr, "\t-v Verbose mode\n"); | 62 | fprintf(stderr, "\t-v Verbosity(-vv dumps any decoded result)\n"); |
63 | fprintf(stderr, "\t-s Give a random seed (and iteration number)\n"); | 63 | fprintf(stderr, "\t-s Give a random seed (and iteration number)\n"); |
64 | fprintf(stderr, "\t-m Give a maximum iteration number\n"); | 64 | fprintf(stderr, "\t-m Give a maximum iteration number\n"); |
65 | fprintf(stderr, "\t-i Give an input file with decoded binary\n"); | 65 | fprintf(stderr, "\t-i Give an input file with decoded binary\n"); |
@@ -188,7 +188,7 @@ static void parse_args(int argc, char **argv) | |||
188 | x86_64 = 0; | 188 | x86_64 = 0; |
189 | break; | 189 | break; |
190 | case 'v': | 190 | case 'v': |
191 | verbose = 1; | 191 | verbose++; |
192 | break; | 192 | break; |
193 | case 'i': | 193 | case 'i': |
194 | if (strcmp("-", optarg) == 0) | 194 | if (strcmp("-", optarg) == 0) |
@@ -264,7 +264,8 @@ int main(int argc, char **argv) | |||
264 | errors++; | 264 | errors++; |
265 | } else if (verbose && !insn_complete(&insn)) | 265 | } else if (verbose && !insn_complete(&insn)) |
266 | dump_stream(stdout, "Info: Found an undecodable input", i, insn_buf, &insn); | 266 | dump_stream(stdout, "Info: Found an undecodable input", i, insn_buf, &insn); |
267 | 267 | else if (verbose >= 2) | |
268 | dump_insn(stdout, &insn); | ||
268 | insns++; | 269 | insns++; |
269 | } | 270 | } |
270 | 271 | ||