Skip to content

Commit 1dfbed1

Browse files
Ye Binmartinkpetersen
Ye Bin
authored andcommitted
scsi: fnic: Fix inconsistent format argument type in fnic_debugfs.c
Fix the following warnings: [drivers/scsi/fnic/fnic_debugfs.c:123]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'. [drivers/scsi/fnic/fnic_debugfs.c:125]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'. [drivers/scsi/fnic/fnic_debugfs.c:127]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'. Link: https://lore.kernel.org/r/[email protected] Reported-by: Hulk Robot <[email protected]> Acked-by: Karan Tilak Kumar <[email protected]> Signed-off-by: Ye Bin <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 2a7869d commit 1dfbed1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/scsi/fnic/fnic_debugfs.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ static ssize_t fnic_trace_ctrl_read(struct file *filp,
120120
len = 0;
121121
trace_type = (u8 *)filp->private_data;
122122
if (*trace_type == fc_trc_flag->fnic_trace)
123-
len = sprintf(buf, "%u\n", fnic_tracing_enabled);
123+
len = sprintf(buf, "%d\n", fnic_tracing_enabled);
124124
else if (*trace_type == fc_trc_flag->fc_trace)
125-
len = sprintf(buf, "%u\n", fnic_fc_tracing_enabled);
125+
len = sprintf(buf, "%d\n", fnic_fc_tracing_enabled);
126126
else if (*trace_type == fc_trc_flag->fc_clear)
127-
len = sprintf(buf, "%u\n", fnic_fc_trace_cleared);
127+
len = sprintf(buf, "%d\n", fnic_fc_trace_cleared);
128128
else
129129
pr_err("fnic: Cannot read to any debugfs file\n");
130130

0 commit comments

Comments
 (0)