Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: scsi_transport_fc: Use %u for dev_loss_tmo

dev_loss_tmo is an unsigned value. Using "%d" as output format causes
irritating negative values to be shown in sysfs.

Link: https://lore.kernel.org/r/20220902131519.16513-1-mwilck@suse.com
Reviewed-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Martin Wilck and committed by
Martin K. Petersen
7f615c1b 9acb9f0e

+1 -1
+1 -1
drivers/scsi/scsi_transport_fc.c
··· 1170 1170 return 0; 1171 1171 } 1172 1172 1173 - fc_rport_show_function(dev_loss_tmo, "%d\n", 20, ) 1173 + fc_rport_show_function(dev_loss_tmo, "%u\n", 20, ) 1174 1174 static ssize_t 1175 1175 store_fc_rport_dev_loss_tmo(struct device *dev, struct device_attribute *attr, 1176 1176 const char *buf, size_t count)