RE: [PATCH 2/7] hpsa: add sas_address to sysfs device attibute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Don Brace [mailto:don.brace@xxxxxxxxxxxxx]
> Sent: Wednesday, April 27, 2016 5:14 PM
> Subject: [PATCH 2/7] hpsa: add sas_address to sysfs device attibute
> 
> From: Joseph T Handzik <joseph.t.handzik@xxxxxxx>
...
> +static ssize_t sas_address_show(struct device *dev,
> +	      struct device_attribute *attr, char *buf)
> +{
...
> +	return snprintf(buf, PAGE_SIZE, "0x%016llx\n", sas_address);

What endianness is sas_address?  Unless it's already been byte reversed,
that'll print differently on big-endian and little-endian systems.


��.n��������+%������w��{.n�����{������ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux