Re: [PATCH 1/6] scsi: Add 'access_state' and 'preferred_path' attribute

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

 



On 03/01/2016 05:06 AM, Christoph Hellwig wrote:
(I don't care about the *printf holy war for constant strings.  In all
  truth sysfs should switch to the seq_file API ASAP and end that misery..)

Agreed that it's not that important whether snprintf() or sprintf() is used. But sprintf() has an advantage, namely that it's not needed to specify the output buffer size. Which means fewer magic constants and hence easier to read code ...

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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