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