From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: sysfs_format_mac Date: Tue, 16 Jul 2013 14:12:49 -0700 Message-ID: <1374009169.1949.38.camel@joe-AO722> References: <20130716.125641.1190207010366517153.davem@davemloft.net> <1374007586.1949.25.camel@joe-AO722> <20130716.135857.1132486724952537431.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: David Miller Return-path: Received: from perches-mx.perches.com ([206.117.179.246]:35645 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964786Ab3GPVMu (ORCPT ); Tue, 16 Jul 2013 17:12:50 -0400 In-Reply-To: <20130716.135857.1132486724952537431.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 2013-07-16 at 13:58 -0700, David Miller wrote: > From: Joe Perches > Date: Tue, 16 Jul 2013 13:46:26 -0700 > > On Tue, 2013-07-16 at 12:56 -0700, David Miller wrote: [] > >> It would make so much more sense to allow specifying a length > >> specifier to %pm and friends. > > > > scnprintf("%*ph", (int)size, buffer) > > Yes, exactly, something like that. That works now.