From patchwork Mon Sep 13 08:40:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 174162 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8D8hQKP028960 for ; Mon, 13 Sep 2010 08:43:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754755Ab0IMIk4 (ORCPT ); Mon, 13 Sep 2010 04:40:56 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:64767 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754429Ab0IMIky (ORCPT ); Mon, 13 Sep 2010 04:40:54 -0400 Received: by ewy23 with SMTP id 23so2566576ewy.19 for ; Mon, 13 Sep 2010 01:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=i907liI32+/kaij9nnnOMJs7xVi7NMnr/xqxExxI90M=; b=PJtx5Synrgt9BAiFfWipFLrrG14vWBrseZL4GK+ZPQgORQKtSySoE5L757lNvJ06pv 3QEICQupZugzhc0jWt5QswvPD7vf/JRUVKbLYp0PbRfvxa9U2Pxb4EgxEu48eWs/tJNC Lyf4elcO8ZhcECkTKra93gpoLSMT31D9WYDR8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=RJr/RZZbsMIK9WXAlIdP46fPkDHmmdsC2Jc84Ob6ywUNA25iZyUicS9YubRCuNJxLj YIL3cj3ONB7dJIbtuxjkTCGLQo3yo674FWpCoBpEI0lvY8/Mov3TqghJYuYU42AMYHzb 4dG7IZ1pRiK0cAq+6XU4IP7st64a+yffDU4pU= Received: by 10.213.10.206 with SMTP id q14mr708872ebq.87.1284367253236; Mon, 13 Sep 2010 01:40:53 -0700 (PDT) Received: from localhost.localdomain (79-134-110-186.cust.suomicom.fi [79.134.110.186]) by mx.google.com with ESMTPS id z55sm8860543eeh.3.2010.09.13.01.40.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Sep 2010 01:40:52 -0700 (PDT) From: Andy Shevchenko To: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Andy Shevchenko , Nohee Ko , linux-wireless@vger.kernel.org Subject: [PATCHv2 03/10] staging: brcm80211: use '%pM' format to print MAC address Date: Mon, 13 Sep 2010 11:40:27 +0300 Message-Id: X-Mailer: git-send-email 1.7.2.2 In-Reply-To: <8ad2522ae82e753fcfa9fa9726d2a301e7b8b987.1284316733.git.andy.shevchenko@gmail.com> References: <8ad2522ae82e753fcfa9fa9726d2a301e7b8b987.1284316733.git.andy.shevchenko@gmail.com> In-Reply-To: <8ad2522ae82e753fcfa9fa9726d2a301e7b8b987.1284316733.git.andy.shevchenko@gmail.com> References: <8ad2522ae82e753fcfa9fa9726d2a301e7b8b987.1284316733.git.andy.shevchenko@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 13 Sep 2010 08:43:28 +0000 (UTC) diff --git a/drivers/staging/brcm80211/util/bcmutils.c b/drivers/staging/brcm80211/util/bcmutils.c index 364f837..c6c63a8 100644 --- a/drivers/staging/brcm80211/util/bcmutils.c +++ b/drivers/staging/brcm80211/util/bcmutils.c @@ -792,10 +792,7 @@ int BCMROMFN(bcm_ether_atoe) (char *p, struct ether_addr * ea) { char *bcm_ether_ntoa(const struct ether_addr *ea, char *buf) { - static const char template[] = "%02x:%02x:%02x:%02x:%02x:%02x"; - snprintf(buf, 18, template, - ea->octet[0] & 0xff, ea->octet[1] & 0xff, ea->octet[2] & 0xff, - ea->octet[3] & 0xff, ea->octet[4] & 0xff, ea->octet[5] & 0xff); + snprintf(buf, 18, "%pM", ea->octet); return (buf); }