From patchwork Sat Sep 11 17:33: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: 172502 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 o8BHYxsL020514 for ; Sat, 11 Sep 2010 17:34:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754129Ab0IKRds (ORCPT ); Sat, 11 Sep 2010 13:33:48 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:41232 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754053Ab0IKRdq (ORCPT ); Sat, 11 Sep 2010 13:33:46 -0400 Received: by ewy23 with SMTP id 23so2268651ewy.19 for ; Sat, 11 Sep 2010 10:33:44 -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; bh=j55XOFw/RMDM93vxpxuwDaiEYYkY+REaYUL1QHQ1ovI=; b=p3biM3hE3vUJOlyc5UW4vVD55Vkop9It7qQjEohD5oINVEWxYJFwH75KWrL2nB0YMZ rs5v26I7ihsD5hqazrGqEu6I4lu6eE12KdRGOH0U4sOqX+240zrPCABWKAF7XwzgmhkG mHDdkMLjKbXlI+HvSBJNwDM/a6uRf32Z3OeS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=tF1ubmFdH8m3+8dUnWc/4jtI790ZZR6dWKwgnqzzrg2jDjdPcJLlrRgMUW70ySE0vy qazYSzdX0aW/JBzxdtLNEb7CqhqK+2vyq8qtvvkIXq1HtcPyGy1vgmauo0SngtLSO2GJ 01nkBTO5W6VTE4txO5mtIsnbL2ImAmo6ASsjA= Received: by 10.213.20.132 with SMTP id f4mr536250ebb.19.1284226424419; Sat, 11 Sep 2010 10:33:44 -0700 (PDT) Received: from localhost.localdomain (79-134-110-186.cust.suomicom.fi [79.134.110.186]) by mx.google.com with ESMTPS id z55sm6031816eeh.21.2010.09.11.10.33.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 11 Sep 2010 10:33:43 -0700 (PDT) From: Andy Shevchenko To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , Joe Perches , Andy Shevchenko Subject: [PATCHv2 1/2] dvb: mantis: use '%pM' format to print MAC address Date: Sat, 11 Sep 2010 20:33:27 +0300 Message-Id: <0ffd3b30fbaa2168656dd17fbdb290cf2e0a867e.1284226281.git.andy.shevchenko@gmail.com> X-Mailer: git-send-email 1.7.2.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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]); Sat, 11 Sep 2010 17:34:59 +0000 (UTC) diff --git a/drivers/media/dvb/mantis/mantis_core.c b/drivers/media/dvb/mantis/mantis_core.c index 8113b23..22524a8 100644 --- a/drivers/media/dvb/mantis/mantis_core.c +++ b/drivers/media/dvb/mantis/mantis_core.c @@ -91,10 +91,7 @@ static int get_mac_address(struct mantis_pci *mantis) return err; } dprintk(verbose, MANTIS_ERROR, 0, - " MAC Address=[%02x:%02x:%02x:%02x:%02x:%02x]\n", - mantis->mac_address[0], mantis->mac_address[1], - mantis->mac_address[2], mantis->mac_address[3], - mantis->mac_address[4], mantis->mac_address[5]); + " MAC Address=[%pM]\n", mantis->mac_address); return 0; } diff --git a/drivers/media/dvb/mantis/mantis_ioc.c b/drivers/media/dvb/mantis/mantis_ioc.c index de148de..fe31cfb 100644 --- a/drivers/media/dvb/mantis/mantis_ioc.c +++ b/drivers/media/dvb/mantis/mantis_ioc.c @@ -68,14 +68,7 @@ int mantis_get_mac(struct mantis_pci *mantis) return err; } - dprintk(MANTIS_ERROR, 0, - " MAC Address=[%02x:%02x:%02x:%02x:%02x:%02x]\n", - mac_addr[0], - mac_addr[1], - mac_addr[2], - mac_addr[3], - mac_addr[4], - mac_addr[5]); + dprintk(MANTIS_ERROR, 0, " MAC Address=[%pM]\n", mac_addr); return 0; }