Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp787885rdh; Thu, 23 Nov 2023 19:38:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkpot/eaHs72RhJFOJGadD/qHlYZtCT4vPjiLikjH2OGCqkZD59M5uLXrD0b0FWP5x9shQ X-Received: by 2002:a17:90b:3783:b0:285:81a9:4fb4 with SMTP id mz3-20020a17090b378300b0028581a94fb4mr1704357pjb.28.1700797079897; Thu, 23 Nov 2023 19:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700797079; cv=none; d=google.com; s=arc-20160816; b=C5ff+MEHnpA/AJvUfHLZ4mC52flhYWvaR0dBkWi4PDqCk4TXugYDvLaZWNrQpflU5J Xyb8u794XRMVyAGkAH1As1XfkTo7YAGUkVi2688tQlegtcAm/BykCOLLCvKXxtXF5ZG8 ZVbzzOE17zi8bhtF+VidWdmHSWtRlrFXoljHQFnRATm19ZY8FOS18M5dK06DOgUqZiSS 9Nidpsz/PTUKn+KM87mK5MbnGeRZaTGUIZDlA210tnYyCY+gyJ8u+bh+pRF9l3BCbjw8 Bt5WCgiu30/kMhZ9Fv7z84fJQn20ykq9v1i4NSWEYo2AzI6+zZRXkceM4ak5o0H99/aW Cf1g== 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=CfaOCzpQNXPNdiOU6+O8brbk3lbOzOfrbuJX1VTIoz4=; fh=f9/4L5WTkyMs0HwKLVSZtc0UzQZDbbmz4se+5IAJiu4=; b=QVWCbhh2OGc4bFoiNPnhA3cmzviblBUTWdFavFsGiTS3kMC8Ud3PBygPCLILNnjKvP UZATa3byEEBgBoa3BmbJzU+1Cbq+PHQqYB+BijMLhY7CktnCpRf907ssekMtFXRXye9L scb4BS4PQtFjaOCjxfzfdPUUiLf/ehH19iKF83bxRJKvPFR6A+jhx9VfnQdjn19/nKDo r/HUnr8y8snVp/utCuVVRfS7Yw7lvUUW9yTpc1foUWOkFth9Ulhir794DamKBsGotl86 wNRP1WHhWatnSrGFZFJ71WnqqD7LDnY0Ediq6L8IYPSGtus9RRRxa46dRcrU71IeOQfv 4W1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UkRT7gcP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e6-20020a17090a7c4600b00285597ea6bbsi3149292pjl.165.2023.11.23.19.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 19:37:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UkRT7gcP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id AD26F805F4B6; Thu, 23 Nov 2023 19:37:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232271AbjKXDhp (ORCPT + 99 others); Thu, 23 Nov 2023 22:37:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbjKXDhc (ORCPT ); Thu, 23 Nov 2023 22:37:32 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 512FF10F3 for ; Thu, 23 Nov 2023 19:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700797050; 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=CfaOCzpQNXPNdiOU6+O8brbk3lbOzOfrbuJX1VTIoz4=; b=UkRT7gcP4+M58V5l0TgFtmlURRe9ja3jani/lyiQKfKJUYgGYlEGelY5YAXpbDHnO4jQVN mhkMRskT6YH/oD/G7Y4Ak7r2KxNhckQIhyeSDzQ5QpMlP8cd5BMVW8iZurPtr2U+8psJp0 Secif1FWEMsSEjJGFyo24nzbfyjwfsI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-F2GfJlqvM5iLOFSDvp8tzg-1; Thu, 23 Nov 2023 22:37:26 -0500 X-MC-Unique: F2GfJlqvM5iLOFSDvp8tzg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 A55773813F26; Fri, 24 Nov 2023 03:37:25 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (unknown [10.72.112.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3262A492BE7; Fri, 24 Nov 2023 03:37:20 +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, yujie.liu@intel.com, Baoquan He Subject: [PATCH v2 7/7] kexec_file, parisc: print out debugging message if required Date: Fri, 24 Nov 2023 11:36:42 +0800 Message-ID: <20231124033642.520686-8-bhe@redhat.com> In-Reply-To: <20231124033642.520686-1-bhe@redhat.com> References: <20231124033642.520686-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.9 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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 19:37:57 -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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/parisc/kernel/kexec_file.c b/arch/parisc/kernel/kexec_file.c index 8c534204f0fd..011545898da7 100644 --- a/arch/parisc/kernel/kexec_file.c +++ b/arch/parisc/kernel/kexec_file.c @@ -38,7 +38,7 @@ 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", + kexec_dprintk("Loaded the kernel at 0x%lx, entry at 0x%lx\n", kernel_load_addr, image->start); if (initrd != NULL) { @@ -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