Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754354AbbLIXVo (ORCPT ); Wed, 9 Dec 2015 18:21:44 -0500 Received: from smtprelay0176.hostedemail.com ([216.40.44.176]:35515 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752982AbbLIXVn (ORCPT ); Wed, 9 Dec 2015 18:21:43 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:4321:5007:6261:7974:10004:10400:10848:11232:11658:11914:12517:12519:12679:12740:13069:13311:13357:14659:21080:30054:30064:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: fog11_2bcf580b7293a X-Filterd-Recvd-Size: 1707 Message-ID: <1449703300.25389.95.camel@perches.com> Subject: Re: [PATCHv3] printf: Add format for 8-byte EUI-64 type From: Joe Perches To: Keith Busch , linux-nvme@lists.infradead.org, LKML Cc: Matthew Wilcox , Greg Kroah-Hartman , Jens Axboe , Christoph Hellwig , Dan Williams Date: Wed, 09 Dec 2015 15:21:40 -0800 In-Reply-To: <1449702413-25598-1-git-send-email-keith.busch@intel.com> References: <1449702413-25598-1-git-send-email-keith.busch@intel.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.2-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 917 Lines: 21 On Wed, 2015-12-09 at 16:06 -0700, Keith Busch wrote: > MAC addresses may be formed using rules based on EUI-64, which is 2 bytes > longer than a typical 6-byte MAC. This patch adds a long specifier to > the %pM format to support the extended unique identifier. > > Since there are multiple valid possible permutations of format specifiers, > the decoding is done in a loop, and the default ':' separator is > initialized at declaration time. A side effect of this allows 'F' and > 'R' both be specified, so these are appended to the documentation. Just thought of this: An alternative is using a format of "%8phC" Is there a use case for a bluetooth or FDDI EUI-64? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/