Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4403544pxv; Tue, 27 Jul 2021 06:37:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZPoU+B8daV+9mGlUuCjTH2k3n0s7PS+DoNqJJ9Dxw/XVhR35qqRcrTDJ7ctd8iuAccOxs X-Received: by 2002:a05:6402:361:: with SMTP id s1mr617422edw.172.1627393066062; Tue, 27 Jul 2021 06:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627393066; cv=none; d=google.com; s=arc-20160816; b=p6xZ1992NwaMS42wwGbN634O0MJwFyxWnf1WGHrnI9M516dbsJBLHifBKjJ96lWmws aC//gpKAkWeM26ouNdAeR64Ol6sMm2s3OSkxVYIm8Nzt11NR5u/5kfPmzdafDgP7Y+Z9 dhfNwjm8eP/sZDWqGcypSIhOiKo2hgsL3fYmGvWN3eppb/Lw+iHb4VonAyQXC2IL7un+ jcWgdvJbpprFd30kWK0R1/WCRUae4rK2ykT6zSS/DzOOG/OC+REDDRErThJaDNwkLjlQ 3UFTlYLZ0+7oMr31J1Q/LbDqdU/Or1ypMgAvHEE2/Pd3sUCaakFI3RhAE1OWDQl+5k1t pM0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=AkwP+GYvnF09N7BhBu9DZwn7Nqp5mjL/nb2maznK/3M=; b=G3iJ3ODK77UxLViCTle8mIjqvjjrzPVcgTN3L6d2wWyQW+Wln4DiIOWxHTTm6BEif6 aLFyJN1MaB7bWjCJeFaCVrmtuuyKgVFMhtdS7j0abX4cqizu6QOi3y+uoG5yABDFKfFq KZv8gvF60x04DU8bGNovgVoWDpRjzwfjJPix55lLg5QKXYaOx5xw44F/0gMFotJvOSmj yCNWzFhG/NIfuGw4n4mUqfDbM1K0rQwIDlel5CY/G9LqC/IZK+zQf+x3VEd384IsftIB 3Nr4rfcmegdOM6T8Zhd02SREmxovtUcUfdx5JzpgalAjv4SlF/ilFzof+54JYcngi78G tEog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si2703871edr.600.2021.07.27.06.37.22; Tue, 27 Jul 2021 06:37:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236721AbhG0Nfp (ORCPT + 99 others); Tue, 27 Jul 2021 09:35:45 -0400 Received: from smtpbg128.qq.com ([106.55.201.39]:45000 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232186AbhG0Nfo (ORCPT ); Tue, 27 Jul 2021 09:35:44 -0400 X-QQ-mid: bizesmtp52t1627392894tlx3fh6g Received: from ficus.lan (unknown [171.223.99.141]) by esmtp6.qq.com (ESMTP) with id ; Tue, 27 Jul 2021 21:34:52 +0800 (CST) X-QQ-SSF: 01000000002000B0C000B00A0000000 X-QQ-FEAT: ptz89vG4AG809G2yUsmLkWimg0PzEcjML+fqpthYefsvk60AEjNt/EvUQwwQJ K6tp89nvsLrVkYwtj/uFpGbXqGV+8oy41XMhJRoJDjFItbfrKREcDR1aq5ldW9oNsCsw7Vs LD9lYEHihJ3rpJcf6TvSG0nSsNUzb0k/06vjDrEGne2W96YtF9AAWdrfuwF5GbIzsDMBzq7 OkbtjX2RLhmT00bup8YgCu6nUw4gLvdYb2/m8Ln8mdrlo30ZUmMMzpJ+kd9Dwv8hEfljYjM uuaGXxC+GgFIbEZF1+unFduEYQya0LVs63uIJfsPJSaS5GP4TqCxFgOLJUD9hw5mAvOf3pZ mEngyejXjrejZhH3V8qD4wfol03zQ== X-QQ-GoodBg: 0 From: Jason Wang 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 Subject: [PATCH] ARM: PCI: use __func__ in debug messages Date: Tue, 27 Jul 2021 21:34:50 +0800 Message-Id: <20210727133450.173749-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam5 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Perhaps, the '"%s...", __func__' is more convenient to show current function in a debug message. Signed-off-by: Jason Wang --- 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