From 5cec4427826c31b5f3e8b46acdff54150fbd190e Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 30 May 2024 00:52:17 +0000 Subject: tpax_driver_usage_block_size(): only print out the actual error. --- src/driver/tpax_driver_ctx.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/driver') diff --git a/src/driver/tpax_driver_ctx.c b/src/driver/tpax_driver_ctx.c index 6e9f615..37ec718 100644 --- a/src/driver/tpax_driver_ctx.c +++ b/src/driver/tpax_driver_ctx.c @@ -208,18 +208,15 @@ static int tpax_driver_usage_block_size( int fdout, const char * program, const char * arg, - const struct argv_option ** optv, struct argv_meta * meta) { - tpax_driver_usage( - fdout,program, - arg,optv,meta); - tpax_dprintf( fdout, - "%s: usage error: `%s' is not a valid positive decimal integer.\n", + "%s: usage error: the requested block size `%s' is not a positive decimal integer.\n", program,arg); + argv_free(meta); + return TPAX_USAGE; } @@ -484,7 +481,7 @@ int tpax_lib_get_driver_ctx( return tpax_driver_usage_block_size( fdctx->fderr, program,entry->arg, - optv,meta); + meta); cctx.blksize = atoi(entry->arg); -- cgit v1.2.3