From 4ce5b6e9912cb168e9b9f69e2c2c3904f5e7ceb0 Mon Sep 17 00:00:00 2001
From: Nguyen Anh Quynh <aquynh@gmail.com>
Date: Fri, 29 Apr 2016 16:28:03 +0800
Subject: [PATCH] kstool: print version & improve the usage

---
 kstool/kstool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kstool/kstool.c b/kstool/kstool.c
index 102779d..8262bd9 100644
--- a/kstool/kstool.c
+++ b/kstool/kstool.c
@@ -11,7 +11,7 @@ static void usage(char *prog)
 {
     printf("Kstool v%s for Keystone Assembler Engine (www.keystone-engine.org)\nBy Nguyen Anh Quynh, 2016\n\n", VERSION);
     printf("Syntax: %s <arch+mode> <assembly-string>\n", prog);
-    printf("\n  The following <arch+mode> options are supported:\n");
+    printf("\nThe following <arch+mode> options are supported:\n");
     printf("        x16:       X86 16bit, Intel syntax\n");
     printf("        x32:       X86 32bit, Intel syntax\n");
     printf("        x64:       X86 64bit, Intel syntax\n");
@@ -147,7 +147,7 @@ int main(int argc, char **argv)
         printf("ERROR: failed on ks_asm() with count = %lu, error = '%s' (code = %u)\n", count, ks_strerror(ks_errno(ks)), ks_errno(ks));
     } else {
         size_t i;
-        printf("Kstool for Keystone Engine (www.keystone-engine.org)\n\n");
+        printf("Kstool v%s for Keystone Engine (www.keystone-engine.org)\n\n", VERSION);
 
         printf("%s = [ ", assembly);
         for (i = 0; i < size; i++) {
-- 
GitLab