Skip to content

Commit cc937c0

Browse files
ikegami-tigaw
authored andcommitted
nvme-print-stdout: print equal line by stdout_d() for debug log level
This is to remain all dump functionality feature. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 1a71dd5 commit cc937c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvme-print-stdout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4903,7 +4903,7 @@ static void stdout_lba_status_info(__u64 result)
49034903

49044904
static bool line_equal(unsigned char *buf, int len, int width, int offset)
49054905
{
4906-
if (!offset || len < offset + width)
4906+
if (!offset || len < offset + width || log_level >= LOG_DEBUG)
49074907
return false;
49084908

49094909
return !memcmp(buf + offset - width, buf + offset, width);

0 commit comments

Comments
 (0)