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); }