Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A603FC433EF for ; Tue, 14 Sep 2021 03:20:34 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 87F25610EA for ; Tue, 14 Sep 2021 03:20:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 87F25610EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 672218349D; Tue, 14 Sep 2021 05:20:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631589632; bh=SWvuV+YQizlg5ysoKL2bbz7o5NaTvgcQF5y31f3pRoQ=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=epd7LxqorzCAglxwi1lZC/CL5QGvBDc521t7h6KRADQ0h2n2l0v9/Q3vsHUm0ku2b gWRkfWf2svEHliFbhPx5mJRa+D097/Hi2bOlKtK6/GQrdw9eKiMzoeaJu4/xaxTGcn h/cpC6WU8pcQ3gMbjCabGUbI9Vl8aHJbyZlmw+tNtV4F2cDqWHbKGrItx+9LrsH0uR PrKICSHhucn0GNZ1DM1oN8vLp8MHekfdmuL8SQ8I9Mx/+UPuDUEmAQD9G79oWU7jTi +SKyg2dg3I69Z4qzxRDlobPBLpLN2uPZZ0bBSGqjjzEQQm2Jw7Wu5H6e/mkI1AZKd+ sQTl41xh/EstA== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 187F08349A; Tue, 14 Sep 2021 05:20:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631589629; bh=SWvuV+YQizlg5ysoKL2bbz7o5NaTvgcQF5y31f3pRoQ=; h=From:To:Cc:Subject:Date:From; b=sZIKnTPgQI7vAtoVMowyEoNNBEjjKP8gldUgY2Jztv+m23RlzcxBI7T8rQ8JMSgTh x6vB1Lb+YqQHrl2o3CK9j8wz5dfMzs29jtgVJ7Tj//HJBZyaYOc+X9cukq7OzAlBxT Q93eOKT73DPnEEMOxF60TuJwr4nYKrODUyFW/82GIeKjfgJ/QVoBF2LX4LDn7S6PHJ bpC0yds5yBpd0UN4RAHGQLvgEI6p9ZDZLORcPhiQuhP9vLFXL972o0ycmOxfEy4FN5 ahDZQtBIlj7ECTZuDGiNdn2b9H+EpkeXcoQuvr8Xw/I3E0gYiE9hlCzlUCnE2MwVt4 tmbY7jt3GmFJg== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Siew Chin Lim , Simon Goldschmidt , Tien Fong Chee Subject: [PATCH] ddr: altera: use KBUILD_BASENAME instead of __FILE__ Date: Tue, 14 Sep 2021 05:20:19 +0200 Message-Id: <20210914032019.273447-1-marex@denx.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The KBUILD_BASENAME contains just the name of the compiled module, in this case 'sequencer', rather than a full path to the compiled file. Use it to prevent pulling the full path into the U-Boot binary, which is useless and annoying. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee --- drivers/ddr/altera/sequencer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c index 6b9b2e90943..8a016f0628f 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -3714,7 +3714,7 @@ static void debug_mem_calibrate(struct socfpga_sdrseq *seq, int pass) u32 debug_info; if (pass) { - debug("%s: CALIBRATION PASSED\n", __FILE__); + debug(KBUILD_BASENAME ": CALIBRATION PASSED\n"); seq->gbl.fom_in /= 2; seq->gbl.fom_out /= 2; @@ -3733,7 +3733,7 @@ static void debug_mem_calibrate(struct socfpga_sdrseq *seq, int pass) writel(debug_info, &phy_mgr_cfg->cal_debug_info); writel(PHY_MGR_CAL_SUCCESS, &phy_mgr_cfg->cal_status); } else { - debug("%s: CALIBRATION FAILED\n", __FILE__); + debug(KBUILD_BASENAME ": CALIBRATION FAILED\n"); debug_info = seq->gbl.error_stage; debug_info |= seq->gbl.error_substage << 8; @@ -3750,7 +3750,7 @@ static void debug_mem_calibrate(struct socfpga_sdrseq *seq, int pass) writel(debug_info, &sdr_reg_file->failing_stage); } - debug("%s: Calibration complete\n", __FILE__); + debug(KBUILD_BASENAME ": Calibration complete\n"); } /** @@ -3934,7 +3934,7 @@ int sdram_calibration_full(struct socfpga_sdr *sdr) initialize_tracking(&seq); - debug("%s: Preparing to start memory calibration\n", __FILE__); + debug(KBUILD_BASENAME ": Preparing to start memory calibration\n"); debug("%s:%d\n", __func__, __LINE__); debug_cond(DLEVEL >= 1, -- 2.33.0