From 83ec3d0164887904a7ae7f3382051ed20d5792b2 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 12 Mar 2024 11:27:42 -0700 Subject: [PATCH] no longer truncate file name in verbose mode fix #3702 --- programs/fileio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/fileio.c b/programs/fileio.c index 6fd55d9a8..e3012a716 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -2441,9 +2441,10 @@ FIO_decompressZstdFrame(FIO_ctx_t* const fCtx, dRess_t* ress, U64 frameSize = 0; IOJob_t *writeJob = AIO_WritePool_acquireJob(ress->writeCtx); - /* display last 20 characters only */ + /* display last 20 characters only when not --verbose */ { size_t const srcFileLength = strlen(srcFileName); - if (srcFileLength>20) srcFileName += srcFileLength-20; + if ((srcFileLength>20) && (g_display_prefs.displayLevel<3)) + srcFileName += srcFileLength-20; } ZSTD_DCtx_reset(ress->dctx, ZSTD_reset_session_only);