RE: [PATCH 1/3] hpsa: convert show method snprintf usage to scnprintf

2015-08-27 Thread Seymour, Shane M
Hi James, There's been no ack on this one. However, there's no actual reason to prefer scnprintf over snprintf: the former will zero terminate, the latter won't if the write length is over the buffer length, but this is a file buffer: the routine will return as many bytes to userspace as are

Re: [PATCH 1/3] hpsa: convert show method snprintf usage to scnprintf

2015-08-26 Thread James Bottomley
On Wed, 2015-07-01 at 03:45 +, Seymour, Shane M wrote: Changed all show method snprintf usage to scnprintf per Documentation/filesystems/sysfs.txt. Signed-off-by: Shane Seymour shane.seym...@hp.com There's been no ack on this one. However, there's no actual reason to prefer scnprintf

[PATCH 1/3] hpsa: convert show method snprintf usage to scnprintf

2015-06-30 Thread Seymour, Shane M
Changed all show method snprintf usage to scnprintf per Documentation/filesystems/sysfs.txt. Signed-off-by: Shane Seymour shane.seym...@hp.com --- Please let me know if this is not the correct way to submit patches by separating them but keeping them logically together. --- a/drivers/scsi/hpsa.c