From patchwork Wed Jul 20 13:34:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 991252 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6KDa9Id013870 for ; Wed, 20 Jul 2011 13:36:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868Ab1GTNfX (ORCPT ); Wed, 20 Jul 2011 09:35:23 -0400 Received: from mga01.intel.com ([192.55.52.88]:11939 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751780Ab1GTNfW (ORCPT ); Wed, 20 Jul 2011 09:35:22 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 20 Jul 2011 06:35:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,235,1309762800"; d="scan'208";a="32512314" Received: from unknown (HELO smile) ([10.255.17.185]) by fmsmga001.fm.intel.com with ESMTP; 20 Jul 2011 06:35:15 -0700 Received: from andy by smile with local (Exim 4.76) (envelope-from ) id 1QjWvW-0003VE-4n; Wed, 20 Jul 2011 16:35:02 +0300 From: Andy Shevchenko To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, "John W. Linville" , linux-kernel@vger.kernel.org Cc: Andy Shevchenko , "Luis R. Rodriguez" , ath9k-devel@venema.h4ckr.net Subject: [PATCH 2/3] wireless: ath9k: use %pM to print MAC Date: Wed, 20 Jul 2011 16:34:30 +0300 Message-Id: X-Mailer: git-send-email 1.7.5.4 In-Reply-To: References: In-Reply-To: References: 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.6 (demeter1.kernel.org [140.211.167.41]); Wed, 20 Jul 2011 13:36:09 +0000 (UTC) Signed-off-by: Andy Shevchenko Cc: "Luis R. Rodriguez" Cc: ath9k-devel@lists.ath9k.org --- drivers/net/wireless/ath/ath9k/htc_drv_debug.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_debug.c b/drivers/net/wireless/ath/ath9k/htc_drv_debug.c index aa48b3a..d3ff33c 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_debug.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_debug.c @@ -623,11 +623,8 @@ static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf, pBase9287->openLoopPwrCntl); } - len += snprintf(buf + len, size - len, - "%20s : %02X:%02X:%02X:%02X:%02X:%02X\n", - "MacAddress", - pBase->macAddr[0], pBase->macAddr[1], pBase->macAddr[2], - pBase->macAddr[3], pBase->macAddr[4], pBase->macAddr[5]); + len += snprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress", + pBase->macAddr); if (len > size) len = size;