linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <wangborong@cdjrlc.com>
To: linusw@kernel.org
Cc: kaloz@openwrt.org, khalasa@piap.pl, linux@armlinux.org.uk,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Jason Wang <wangborong@cdjrlc.com>
Subject: [PATCH] ARM: PCI: use __func__ in debug messages
Date: Tue, 27 Jul 2021 21:34:50 +0800	[thread overview]
Message-ID: <20210727133450.173749-1-wangborong@cdjrlc.com> (raw)

Perhaps, the '"%s...", __func__' is more convenient to show current
function in a debug message.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 arch/arm/mach-ixp4xx/common-pci.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-ixp4xx/common-pci.c b/arch/arm/mach-ixp4xx/common-pci.c
index 893c19c254e3..deb80fe05c03 100644
--- a/arch/arm/mach-ixp4xx/common-pci.c
+++ b/arch/arm/mach-ixp4xx/common-pci.c
@@ -203,18 +203,18 @@ static u32 local_byte_lane_enable_bits(u32 n, int size)
 static int local_read_config(int where, int size, u32 *value)
 { 
 	u32 n, data;
-	pr_debug("local_read_config from %d size %d\n", where, size);
+	pr_debug("%s from %d size %d\n", __func__, where, size);
 	n = where % 4;
 	crp_read(where & ~3, &data);
 	*value = (data >> (8*n)) & bytemask[size];
-	pr_debug("local_read_config read %#x\n", *value);
+	pr_debug("%s read %#x\n", __func__, *value);
 	return PCIBIOS_SUCCESSFUL;
 }
 
 static int local_write_config(int where, int size, u32 value)
 {
 	u32 n, byte_enables, data;
-	pr_debug("local_write_config %#x to %d size %d\n", value, where, size);
+	pr_debug("%s %#x to %d size %d\n", __func__, value, where, size);
 	n = where % 4;
 	byte_enables = local_byte_lane_enable_bits(n, size);
 	if (byte_enables == 0xffffffff)
@@ -293,8 +293,8 @@ static int abort_handler(unsigned long addr, unsigned int fsr, struct pt_regs *r
 
 	isr = *PCI_ISR;
 	local_read_config(PCI_STATUS, 2, &status);
-	pr_debug("PCI: abort_handler addr = %#lx, isr = %#x, "
-		"status = %#x\n", addr, isr, status);
+	pr_debug("PCI: %s addr = %#lx, isr = %#x, status = %#x\n",
+			__func__, addr, isr, status);
 
 	/* make sure the Master Abort bit is reset */    
 	*PCI_ISR = PCI_ISR_PFE;
-- 
2.32.0


                 reply	other threads:[~2021-07-27 13:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210727133450.173749-1-wangborong@cdjrlc.com \
    --to=wangborong@cdjrlc.com \
    --cc=kaloz@openwrt.org \
    --cc=khalasa@piap.pl \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).