Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp28561rdb; Wed, 29 Nov 2023 18:41:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyahgt+o2zdAgQAySpHT/heA80NQcsyZ8mhe0CV5JEx8EAiwUJ7gh85upNIIv+MSTypw7b X-Received: by 2002:a17:90b:33d0:b0:285:dbc9:dc18 with SMTP id lk16-20020a17090b33d000b00285dbc9dc18mr11699794pjb.38.1701312110894; Wed, 29 Nov 2023 18:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701312110; cv=none; d=google.com; s=arc-20160816; b=1DYXeJU8o78WzzBfJCg75cUDPXWB44eZFk59HK47l8T/iCqgtJeXf7MRI4SwaIDCKZ d7bZGpXH0j5736UAxaFRCsBoBdVLhvA55GYhuFAp3CcyGTwMtUWy9Ehu9VbnlEIqGzzt PJVL3ono93DdamNbvVUJIg44JYw0eGHXCcWQMfsaArAE7vabhH1nmaSp1bqiBYGpUmkS rsQCHi7euBbRmjPOjrp6QPit/Ya9F9A87T06j4nej7sJ7Eck7neV+2vHgkAQcsivPjK2 meOrM3Tm/nc45+JF0PK2qABXVCefxK00cE2VuPJcYe1tAwIXRIh9HKxelr4oAuNcqhQ8 ZOOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8a+ellwCh/3V8BzkRuEVvsJ+8hxsTW4N92KLuW+8EyQ=; fh=5UuzwTQm02ADEtrX0cYUVH8jtF0RwJiWGme68kV/Ltg=; b=iF3Paoyl0XiKDdVqwAbf8f7eyd1y7fsqA6S2G6pE72d9Iihe33S4jKbFLs3b9aPIKu Br8EjxW1Nbpe21yCEtwWjlIarLiTBw8lc6evGpCy34Ido1HxVfeyI1p4RaxeRYvqKk4Z 5gGgMR/Pj44lFL6eIjZbsMX8g3YlFl8IRx62qZgdpPiC+JGshvb9/AKdn6bb6edWIYcw ryRKOwSVtjyiFrgfnqi+oLj/PH32PS1YAS1TXQ5dTJpO3IBU6SD1bFwWjJft3GkUDlag sHSCjbGziVYxU7E3iWjlseoU2Vxp8evgr9CweOLd5xlmd4zTXIVVx/yOIv5StOfV55Y9 Hldg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fdUcIIsF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id g21-20020a17090ace9500b0028014aca793si2534354pju.2.2023.11.29.18.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 18:41:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fdUcIIsF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EF6EB806D818; Wed, 29 Nov 2023 18:41:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235018AbjK3ClH (ORCPT + 99 others); Wed, 29 Nov 2023 21:41:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235013AbjK3Ckx (ORCPT ); Wed, 29 Nov 2023 21:40:53 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADC91170B for ; Wed, 29 Nov 2023 18:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701312040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8a+ellwCh/3V8BzkRuEVvsJ+8hxsTW4N92KLuW+8EyQ=; b=fdUcIIsFx8v+GW6QTbX5RSksDYfj6MCi8Vpfav/JFU6QOhIUgdLhHdbgqE1/GzPjj+mbmj /CzKeg0CMYcMjfYBT5QxdSQ782L5lWPv22x4foEVq+b0SxJP2ASClSMKfx4fUGd0a9XqUZ AR2vLz28IImRkxhDjxaxFT3qYZ5yhW8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-433-xuchx3FxNBWjFxjNJEU3Uw-1; Wed, 29 Nov 2023 21:40:35 -0500 X-MC-Unique: xuchx3FxNBWjFxjNJEU3Uw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A2D01185A783; Thu, 30 Nov 2023 02:40:34 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (unknown [10.72.113.121]) by smtp.corp.redhat.com (Postfix) with ESMTP id 963822026D4C; Thu, 30 Nov 2023 02:40:30 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-parisc@vger.kernel.org, akpm@linux-foundation.org, joe@perches.com, nathan@kernel.org, Baoquan He Subject: [PATCH v3 7/7] kexec_file, parisc: print out debugging message if required Date: Thu, 30 Nov 2023 10:39:55 +0800 Message-ID: <20231130023955.5257-8-bhe@redhat.com> In-Reply-To: <20231130023955.5257-1-bhe@redhat.com> References: <20231130023955.5257-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 29 Nov 2023 18:41:47 -0800 (PST) Replace pr_debug() with the newly added kexec_dprintk() in kexec_file loading related codes. Signed-off-by: Baoquan He --- arch/parisc/kernel/kexec_file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/parisc/kernel/kexec_file.c b/arch/parisc/kernel/kexec_file.c index 8c534204f0fd..3fc82130b6c3 100644 --- a/arch/parisc/kernel/kexec_file.c +++ b/arch/parisc/kernel/kexec_file.c @@ -38,8 +38,8 @@ static void *elf_load(struct kimage *image, char *kernel_buf, for (i = 0; i < image->nr_segments; i++) image->segment[i].mem = __pa(image->segment[i].mem); - pr_debug("Loaded the kernel at 0x%lx, entry at 0x%lx\n", - kernel_load_addr, image->start); + kexec_dprintk("Loaded the kernel at 0x%lx, entry at 0x%lx\n", + kernel_load_addr, image->start); if (initrd != NULL) { kbuf.buffer = initrd; @@ -51,7 +51,7 @@ static void *elf_load(struct kimage *image, char *kernel_buf, if (ret) goto out; - pr_debug("Loaded initrd at 0x%lx\n", kbuf.mem); + kexec_dprintk("Loaded initrd at 0x%lx\n", kbuf.mem); image->arch.initrd_start = kbuf.mem; image->arch.initrd_end = kbuf.mem + initrd_len; } @@ -68,7 +68,7 @@ static void *elf_load(struct kimage *image, char *kernel_buf, if (ret) goto out; - pr_debug("Loaded cmdline at 0x%lx\n", kbuf.mem); + kexec_dprintk("Loaded cmdline at 0x%lx\n", kbuf.mem); image->arch.cmdline = kbuf.mem; } out: -- 2.41.0