Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2018177yba; Sat, 27 Apr 2019 12:14:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVQgY23VeUhYhbIkybr15WeLGv14Hc3eutRxNbC41p9Kzt0O3fX8rGUWxXWkR50Fyuq75E X-Received: by 2002:a63:1852:: with SMTP id 18mr14409598pgy.283.1556392476710; Sat, 27 Apr 2019 12:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556392476; cv=none; d=google.com; s=arc-20160816; b=oVZYg70oFzYxtOZR1usa83ECXNdMCMZEawoDtGf6d2axvD/F5HDQfkZfCa3c83mNaT eKMGpSC5UXCTiyy3Wjr2WXm74J6Jw5IbbAK96g2Ho0e4tp4UpPbAuMO18t5dGCLxZo65 0iMbu+23FdazCZc/F5+UPtjSHRrFGqYerXFeUERP+SI87sirIrjOZ5LTO5zWFJFqbBio gWFcSJeydc4TThChn7JBesNx+DvX97nNx9KZ/o97+3Bx9nv5vrKm9hEDLP3BPYcxnOOy RvODTWMOfMxhNlvARBYtsKg4WB5K4K5FGsn+AWQqtyjQ9KFmwDiT3nOHrM1hH8MX9e1k L9hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=yB3ceRNeie3ekFC/SUDDCaxF9O67AqC+ZxAxz2oma3A=; b=BW5QoZ4ZoqzltHJFL6d4iMKMKu4ZvNDDQP5vuGg3wlFZskEKDszKzCEg3mfXSP256d djyBs4u1VG2mO2umes9QdrG67THBxBjv5cBv3OBd7wUTyyEA6LqgvEG8Hmm7xESMbaS0 nwOlaCCOg12J/kgtTy8AgMDuTJw5brO8FMs3u0DEZvUfMSrB+eZDict/Gl8AAmqKxjeV 2IL/7H0puMHgeBq2Qv52N6+i/4F2vCDGvcua+2776XufczVWYfPEzJ+ih38E++ezKj/M rOCp6cvT43w+p3kVOvKZ08Cv0Yq8DtG1mEaG8/zRnugYTg7fjKlFrR1IZOFMqNYqKGd8 PycA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fredlawl-com.20150623.gappssmtp.com header.s=20150623 header.b=fm+vjMnp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si29726964pfa.224.2019.04.27.12.14.21; Sat, 27 Apr 2019 12:14:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fredlawl-com.20150623.gappssmtp.com header.s=20150623 header.b=fm+vjMnp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726374AbfD0TNX (ORCPT + 99 others); Sat, 27 Apr 2019 15:13:23 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:42633 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbfD0TNW (ORCPT ); Sat, 27 Apr 2019 15:13:22 -0400 Received: by mail-oi1-f196.google.com with SMTP id k9so2478240oig.9 for ; Sat, 27 Apr 2019 12:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fredlawl-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yB3ceRNeie3ekFC/SUDDCaxF9O67AqC+ZxAxz2oma3A=; b=fm+vjMnpYE5GOyxCJ9WFPRgoGhzGcvPKxyAcwvdjhgnLIKQ8q8iOimX5wvezJXglRJ jiJ+iNyeCfJyZ/JSxELxGhjSbV9L+oVmXHkW+SmgVBuRzUl261mxDCQiTkfzWR4oo7U0 3O//BUKDFXnwh9BhO/B75L1eieWoV/8Hjue9QEnBJhiMAUnsQtmtEhDWpm/lGtHG1WOZ 1B5DkAD/VNwdfie93CymaL27kJaWY2oHy5uHZXVzjTSZ9w3nYbyh1E7qIKAtrknPdlmY 3KcCMwbYFli0bMygKoKzJ25cuWYHbI9T2exVy8Wv2nE3AtMMvUYOtDUgJM2v5KCbG1BD CocA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yB3ceRNeie3ekFC/SUDDCaxF9O67AqC+ZxAxz2oma3A=; b=Bm2Jb32rkowif8NJrqmLgonIenG8oe0UnsgaGpwFOsnTFZqECvK59umnJjyKGm7tb6 9TpgWrnJR1QfmV8kcjNcLDa7j7fJGkXWnvoxA+L/5Y/rgKhOuHV3/MuP3zxBzjnOQZPJ 7b20bY6ORxQYqsBgca/oGlL77VPCAMWw3aIqCqtNWh/HR+9I/IUxHpzykCcy1aHCxIFC BacT1msOJJog17XGLuiCgk4xYHVg8FY9/hLVZZM+ND4pRgkjUpBU4hOhgBQ4Uvt9z0VB c6yMz/oiYWmSlzFt5jWEMecQsw5Hbk62f/ipb9zkvNTZEb07gxTYNdS7NNhlwpSr2gWN qBaw== X-Gm-Message-State: APjAAAWqxcz9ipxOOFYyI2RgQDTtQOL1Zn62h1E/2smtlKJtY9Ff3eVf P0VUgbqmzMtzK1QVkVTRpc4VqA== X-Received: by 2002:aca:97:: with SMTP id 145mr417673oia.36.1556392400983; Sat, 27 Apr 2019 12:13:20 -0700 (PDT) Received: from linux.fredlawl.com ([2600:1700:18a0:11d0:3d43:9acc:6ecc:a72c]) by smtp.gmail.com with ESMTPSA id d11sm342069otl.33.2019.04.27.12.13.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Apr 2019 12:13:20 -0700 (PDT) From: fred@fredlawl.com To: bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, mika.westerberg@linux.intel.com, lukas@wunner.de, andriy.shevchenko@linux.intel.com, keith.busch@intel.com, mr.nuke.me@gmail.com, liudongdong3@huawei.com, thesven73@gmail.com, Frederick Lawler Subject: [PATCH 4/4] PCI/portdrv: Add dev_fmt() to port drivers Date: Sat, 27 Apr 2019 14:13:04 -0500 Message-Id: <20190427191304.32502-5-fred@fredlawl.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190427191304.32502-1-fred@fredlawl.com> References: <20190427191304.32502-1-fred@fredlawl.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frederick Lawler Add dev_fmt() to port drivers. Signed-off-by: Frederick Lawler --- drivers/pci/hotplug/pciehp_core.c | 3 +++ drivers/pci/hotplug/pciehp_ctrl.c | 2 ++ drivers/pci/hotplug/pciehp_hpc.c | 3 +++ drivers/pci/hotplug/pciehp_pci.c | 2 ++ drivers/pci/pcie/aer.c | 3 +++ drivers/pci/pcie/aer_inject.c | 2 ++ drivers/pci/pcie/bw_notification.c | 2 ++ drivers/pci/pcie/dpc.c | 2 ++ drivers/pci/pcie/pme.c | 2 ++ 9 files changed, 21 insertions(+) diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c index 430a47556813..b07d713fd4bd 100644 --- a/drivers/pci/hotplug/pciehp_core.c +++ b/drivers/pci/hotplug/pciehp_core.c @@ -17,6 +17,9 @@ * Dely Sy " */ +#define pr_fmt(fmt) "pciehp: " fmt +#define dev_fmt(fmt) pr_fmt(fmt) + #include #include #include diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c index 345c02b1e8d7..969a9c72f65d 100644 --- a/drivers/pci/hotplug/pciehp_ctrl.c +++ b/drivers/pci/hotplug/pciehp_ctrl.c @@ -13,6 +13,8 @@ * */ +#define dev_fmt(fmt) "pciehp: " fmt + #include #include #include diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index 28a132a0d9db..f2a3da105f5b 100644 --- a/drivers/pci/hotplug/pciehp_hpc.c +++ b/drivers/pci/hotplug/pciehp_hpc.c @@ -12,6 +12,9 @@ * Send feedback to , */ +#define pr_fmt(fmt) "pciehp: " fmt +#define dev_fmt(fmt) pr_fmt(fmt) + #include #include #include diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index 55967ce567f6..04ccd535aca7 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/hotplug/pciehp_pci.c @@ -13,6 +13,8 @@ * */ +#define dev_fmt(fmt) "pciehp: " fmt + #include #include #include diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index 224d878a28b4..6fd67285423d 100644 --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/pcie/aer.c @@ -12,6 +12,9 @@ * Andrew Patterson */ +#define pr_fmt(fmt) "AER: " fmt +#define dev_fmt(fmt) pr_fmt(fmt) + #include #include #include diff --git a/drivers/pci/pcie/aer_inject.c b/drivers/pci/pcie/aer_inject.c index 610b617ae600..d4f6d49acd0c 100644 --- a/drivers/pci/pcie/aer_inject.c +++ b/drivers/pci/pcie/aer_inject.c @@ -12,6 +12,8 @@ * Huang Ying */ +#define dev_fmt(fmt) "AER: " fmt + #include #include #include diff --git a/drivers/pci/pcie/bw_notification.c b/drivers/pci/pcie/bw_notification.c index d2eae3b7cc0f..a4bb90562cd5 100644 --- a/drivers/pci/pcie/bw_notification.c +++ b/drivers/pci/pcie/bw_notification.c @@ -14,6 +14,8 @@ * and warns when links become degraded in operation. */ +#define dev_fmt(fmt) "BWN: " fmt + #include "../pci.h" #include "portdrv.h" diff --git a/drivers/pci/pcie/dpc.c b/drivers/pci/pcie/dpc.c index 72659286191b..b3c10cdc508a 100644 --- a/drivers/pci/pcie/dpc.c +++ b/drivers/pci/pcie/dpc.c @@ -6,6 +6,8 @@ * Copyright (C) 2016 Intel Corp. */ +#define dev_fmt(fmt) "DPC: " fmt + #include #include #include diff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c index 54d593d10396..d6698423a6d6 100644 --- a/drivers/pci/pcie/pme.c +++ b/drivers/pci/pcie/pme.c @@ -7,6 +7,8 @@ * Copyright (C) 2009 Rafael J. Wysocki , Novell Inc. */ +#define dev_fmt(fmt) "PME: " fmt + #include #include #include -- 2.17.1