diff options
author | midipix <writeonce@midipix.org> | 2024-05-30 00:50:30 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-05-30 00:57:49 +0000 |
commit | 5ceeb10bf73ae3329be835bad0ed81c2b5faf90b (patch) | |
tree | f32e049645c724679b46d4a06281603dce41fa1a | |
parent | 8c58594be4cb5b72ccb854a800c33bf4b8ade265 (diff) | |
download | tpax-5ceeb10bf73ae3329be835bad0ed81c2b5faf90b.tar.bz2 tpax-5ceeb10bf73ae3329be835bad0ed81c2b5faf90b.tar.xz |
tpax_driver_usage_block_size_range(): only print out the actual error.
-rw-r--r-- | src/driver/tpax_driver_ctx.c | 9 |
1 files changed, 3 insertions, 6 deletions
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( |