Skip to contentSkip to conversation

sysfs: unique_id in hex

PATCH New Kurt Garloff 1 participant 1 message Feb 9, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysfs: unique_id in hex

Hi,

the unique ID field is filled by most host adapters with their IO port. The io port is printed in hex in /proc/ioports.
Thus we should probably do the same in sys/classes/scsi_host/hostX/unique_id

Consider applying the attached patch.

Regards,

Signature · 2 lines
Kurt Garloff  <[email protected]>                            Cologne, DE 
SUSE LINUX AG, Nuernberg, DE                          SUSE Labs (Head)
scsi/scsi_sysfs.c.new renamed from scsi/scsi_sysfs.c +1 -1
@@ -94,7 +94,7 @@
 };
 static CLASS_DEVICE_ATTR(scan, S_IWUSR, NULL, store_scan);
 
-shost_rd_attr(unique_id, "%u\n");
+shost_rd_attr(unique_id, "0x%x\n");
 shost_rd_attr(host_busy, "%hu\n");
 shost_rd_attr(cmd_per_lun, "%hd\n");
 shost_rd_attr(sg_tablesize, "%hu\n");