From patchwork Wed Mar 9 22:38:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olli Salonen X-Patchwork-Id: 8550361 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A24ED9F372 for ; Wed, 9 Mar 2016 22:38:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C89432025B for ; Wed, 9 Mar 2016 22:38:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E99FD20251 for ; Wed, 9 Mar 2016 22:38:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754168AbcCIWim (ORCPT ); Wed, 9 Mar 2016 17:38:42 -0500 Received: from mail-lb0-f193.google.com ([209.85.217.193]:34453 "EHLO mail-lb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753977AbcCIWim (ORCPT ); Wed, 9 Mar 2016 17:38:42 -0500 Received: by mail-lb0-f193.google.com with SMTP id vk4so6566375lbb.1 for ; Wed, 09 Mar 2016 14:38:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dDgeEaHUU9w2kLXtoJnlRfI3kSEcb0fSrMlVng+/9sQ=; b=UxB5YUBLD2ynPfxh2W3G0uka2Nx8eTfT0yhU078eHpLfPIWRgAOl4IjZPP1NvAxze2 AwasEJ2Cm0+L9XcPImKDv55D6vNW+MtHAG7YJg7swLFLMS9ZIYTYQu/FMoTZUIYqBUls VKz7G+yWUu0KhwoV8K0yCgF4244vq+uH5GXdNMk9VrGT/j1RCRTSB8XXGSLZd2wry7ux T+Yvgx6tdkt+h6UAu7dcqrOKlpjyhpi9IXmaNxN5bqiS5/h+UQehjisqLLkjN1CaH0eH aBGkzpWhFq4fNrKS0a5Yf0zqWzQ5MSp//hL+9EioCgKC0oBva43gzM6QM41Pv79PISE2 vayA== X-Gm-Message-State: AD7BkJJKZj5bAtCtr0gvp1vpD3XuMtieCYmKhtjWKYzHLhHNBbCJcv2RqFxZApmv7learQ== X-Received: by 10.25.26.83 with SMTP id a80mr67934lfa.36.1457563119874; Wed, 09 Mar 2016 14:38:39 -0800 (PST) Received: from dl160.lan (178-55-1-76.bb.dnainternet.fi. [178.55.1.76]) by smtp.gmail.com with ESMTPSA id p67sm106619lfp.13.2016.03.09.14.38.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Mar 2016 14:38:39 -0800 (PST) From: Olli Salonen To: linux-media@vger.kernel.org Cc: Olli Salonen Subject: [PATCH 2/2] smipcie: MAC address printout formatting Date: Thu, 10 Mar 2016 00:38:28 +0200 Message-Id: <1457563108-17017-2-git-send-email-olli.salonen@iki.fi> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457563108-17017-1-git-send-email-olli.salonen@iki.fi> References: <1457563108-17017-1-git-send-email-olli.salonen@iki.fi> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Modify the printout for MAC address to be more vendor agnostic. Print also the port number. Signed-off-by: Olli Salonen --- drivers/media/pci/smipcie/smipcie-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/pci/smipcie/smipcie-main.c b/drivers/media/pci/smipcie/smipcie-main.c index 993a2d1..4a9275a 100644 --- a/drivers/media/pci/smipcie/smipcie-main.c +++ b/drivers/media/pci/smipcie/smipcie-main.c @@ -716,7 +716,8 @@ static int smi_fe_init(struct smi_port *port) /* init MAC.*/ ret = smi_read_eeprom(&dev->i2c_bus[0], 0xc0, mac_ee, 16); dev_info(&port->dev->pci_dev->dev, - "DVBSky SMI PCIe MAC= %pM\n", mac_ee + (port->idx)*8); + "%s port %d MAC: %pM\n", dev->info->name, + port->idx, mac_ee + (port->idx)*8); memcpy(adap->proposed_mac, mac_ee + (port->idx)*8, 6); return ret; }