Skip to content

Commit

Permalink
no longer truncate file name in verbose mode
Browse files Browse the repository at this point in the history
fix #3702
  • Loading branch information
Cyan4973 committed Mar 12, 2024
1 parent 5a66afa commit 83ec3d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions programs/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 83ec3d0

Please sign in to comment.