Skip to content

Commit

Permalink
no longer truncate file name in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyan4973 authored and hswong3i committed Mar 27, 2024
1 parent 866fb0e commit 93f1518
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 93f1518

Please sign in to comment.