[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: [char-misc-next] mei: bus: use scnprintf in *_show
From:       Greg Kroah-Hartman <gregkh () linuxfoundation ! org>
Date:       2016-03-31 23:43:02
Message-ID: 20160331234302.GA31271 () kroah ! com
[Download RAW message or body]

On Thu, Mar 24, 2016 at 10:38:04AM +0200, Tomas Winkler wrote:
> From: Rasmus Villemoes <linux@rasmusvillemoes.dk>
> 
> There's no reason to duplicate the logic provided by scnprintf().

And really, there's no need for any of this, just use sprintf() for
sysfs attributes that are the size of an integer.

But I'll take this for now, just to keep people happy because "everyone
knows sprintf() should never be used"...

bah.

greg k-h
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic