From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH] lib/vsprintf.c: Add %pMF to format FDDI bit reversed MAC addresses Date: Thu, 07 Jan 2010 13:36:15 -0800 Message-ID: <1262900175.10429.75.camel@Joe-Laptop.home> References: <1262888625.10429.23.camel@Joe-Laptop.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: H Hartley Sweeten , David Miller , "Maciej W. Rozycki" , linux-kernel@vger.kernel.org, netdev To: =?UTF-8?Q?Micha=C5=82_Miros=C5=82aw?= Return-path: Received: from mail.perches.com ([173.55.12.10]:1625 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751799Ab0AGVgR (ORCPT ); Thu, 7 Jan 2010 16:36:17 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 2010-01-07 at 22:18 +0100, Micha=C5=82 Miros=C5=82aw wrote:=20 > Something like the following might be smaller and faster - no > functions and their calls > int rev =3D (fmt[1] =3D=3D 'F'); > p =3D pack_hex_byte(p, rev ? bitrev8(addr[i]) : addr[i]); Right, better. Just 6 bytes (x86). Resubmitting.