From 5ceeb10bf73ae3329be835bad0ed81c2b5faf90b Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 30 May 2024 00:50:30 +0000 Subject: tpax_driver_usage_block_size_range(): only print out the actual error. --- src/driver/tpax_driver_ctx.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/driver/tpax_driver_ctx.c b/src/driver/tpax_driver_ctx.c index 6bb7545..6e9f615 100644 --- a/src/driver/tpax_driver_ctx.c +++ b/src/driver/tpax_driver_ctx.c @@ -227,18 +227,15 @@ static int tpax_driver_usage_block_size_range( 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 outside the specified range of 512 to 32256.\n", program,arg); + argv_free(meta); + return TPAX_USAGE; } @@ -495,7 +492,7 @@ int tpax_lib_get_driver_ctx( return tpax_driver_usage_block_size_range( fdctx->fderr, program,entry->arg, - optv,meta); + meta); if (cctx.blksize % 512) return tpax_driver_usage_block_constraints( -- cgit v1.2.3