From 52b3cf0c37664c025b72138ac18dcea0f267d285 Mon Sep 17 00:00:00 2001 From: microbuilder Date: Fri, 16 Dec 2016 16:56:41 +0100 Subject: [PATCH] Minor cleanup --- tools/bootutil/main.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tools/bootutil/main.c b/tools/bootutil/main.c index 654c8532..adba5bb5 100644 --- a/tools/bootutil/main.c +++ b/tools/bootutil/main.c @@ -11,12 +11,6 @@ #include "gui.h" #endif -#ifdef _WIN32 -char *progname = "bootutil.exe"; -#else -char *progname = "bootutil"; -#endif - #define BOOTUTIL_VER_MAJOR (0U) #define BOOTUTIL_VER_MINOR (0U) #define BOOTUTIL_VER_REVISION (1U) @@ -57,9 +51,9 @@ bootutil_help(int rc) BOOTUTIL_VER_REVISION); printf("\n"); #ifndef _WIN32 - printf("Usage: %s -d [-c ] [-ghrv]\n", progname); + printf("Usage: bootutil.exe -d [-c ] [-ghrv]\n"); #else - printf("Usage: %s -d [-c ] [-hrv]\n", progname); + printf("Usage: bootutil -d [-c ] [-hrv]\n"); #endif printf("\n"); printf(" -d : serial/tty port name (mandatory)\n"); @@ -73,9 +67,9 @@ bootutil_help(int rc) printf(" -v : verbose output\n"); printf("\n"); #ifdef _WIN32 - printf("Ex: $ %s -d COM14 -r\n", progname); + printf("Ex: $ bootutil.exe -d COM14 -r\n"); #else - printf("Ex: $ %s -d /dev/tty.SLAB_USBtoUART -r\n", progname); + printf("Ex: $ bootutil -d /dev/tty.SLAB_USBtoUART -r\n"); #endif exit(rc);