From patchwork Wed Sep 25 11:10:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 1167598 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=windriver.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46dpCQ4JHXz9sNk for ; Thu, 26 Sep 2019 05:34:10 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 3ADC0C220C9; Wed, 25 Sep 2019 19:34:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 72B70C21F94; Wed, 25 Sep 2019 19:34:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BF001C21EA1; Wed, 25 Sep 2019 11:15:24 +0000 (UTC) Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by lists.denx.de (Postfix) with ESMTPS id ED037C21DB6 for ; Wed, 25 Sep 2019 11:15:23 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id x8PBEZG2022582 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 25 Sep 2019 04:15:06 -0700 Received: from otp-opanait-l1.corp.ad.wrs.com (128.224.124.169) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.468.0; Wed, 25 Sep 2019 04:14:30 -0700 From: Ovidiu Panait To: Date: Wed, 25 Sep 2019 14:10:54 +0300 Message-ID: <20190925111054.5238-1-ovidiu.panait@windriver.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 25 Sep 2019 19:33:59 +0000 Subject: [U-Boot] [PATCH] initcall.h: initcall_run_list(): Improve debug output X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Ovidiu Panait Existing debug output is mixed with the function name: initcall_run_list() initcall: 25263initcall_run_list() (relocated to 425263) Turn it to: initcall_run_list() initcall: 25263 (relocated to 425263) Signed-off-by: Ovidiu Panait --- include/initcall.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/initcall.h b/include/initcall.h index 78d15afe69..b5acdd01bd 100644 --- a/include/initcall.h +++ b/include/initcall.h @@ -30,11 +30,13 @@ static inline int initcall_run_list(const init_fnc_t init_sequence[]) #ifdef CONFIG_EFI_APP reloc_ofs = (unsigned long)image_base; #endif - debug("initcall: %p", (char *)*init_fnc_ptr - reloc_ofs); if (reloc_ofs) - debug(" (relocated to %p)\n", (char *)*init_fnc_ptr); + debug("initcall: %p (relocated to %p)\n", + (char *)*init_fnc_ptr - reloc_ofs, + (char *)*init_fnc_ptr); else - debug("\n"); + debug("initcall: %p\n", (char *)*init_fnc_ptr - reloc_ofs); + ret = (*init_fnc_ptr)(); if (ret) { printf("initcall sequence %p failed at call %p (err=%d)\n",