From 2e4eea8d496e14dfb64feb01fe09e02a1fa08cbc Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Tue, 8 Apr 2014 21:08:24 -0400 Subject: [PATCH] [libfko] minor formating update for strtol_wrapper() range output messages --- lib/fko_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fko_util.c b/lib/fko_util.c index bd36d87f..c39bdbdb 100644 --- a/lib/fko_util.c +++ b/lib/fko_util.c @@ -428,7 +428,7 @@ strtol_wrapper(const char * const str, const int min, if(exit_upon_err == EXIT_UPON_ERR) { perror("strtol"); - fprintf(stderr, "[*] Value %d out of range %d - %d\n", + fprintf(stderr, "[*] Value %d out of range [(%d)-(%d)]\n", val, min, max); exit(EXIT_FAILURE); } @@ -439,7 +439,7 @@ strtol_wrapper(const char * const str, const int min, *err = FKO_ERROR_INVALID_DATA_UTIL_STRTOL_LT_MIN; if(exit_upon_err == EXIT_UPON_ERR) { - fprintf(stderr, "[*] Value %d out of range %d - %d\n", + fprintf(stderr, "[*] Value %d out of range [(%d)-(%d)]\n", val, min, max); exit(EXIT_FAILURE); } @@ -453,7 +453,7 @@ strtol_wrapper(const char * const str, const int min, *err = FKO_ERROR_INVALID_DATA_UTIL_STRTOL_GT_MAX; if(exit_upon_err == EXIT_UPON_ERR) { - fprintf(stderr, "[*] Value %d out of range %d - %d\n", + fprintf(stderr, "[*] Value %d out of range [(%d)-(%d)]\n", val, min, max); exit(EXIT_FAILURE); }