Message ID | 20230322013623.251401-4-jim.cromie@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2111111wrt; Tue, 21 Mar 2023 18:51:44 -0700 (PDT) X-Google-Smtp-Source: AK7set/wDaKctKGOfkh2NavDlF9pxZpUg8LlVwY6GWjvJ25a3c8NenAK5ya2YK8u6kLw6kOLDMsb X-Received: by 2002:a17:907:cbc9:b0:93b:5f2:36c with SMTP id vk9-20020a170907cbc900b0093b05f2036cmr1488968ejc.61.1679449903999; Tue, 21 Mar 2023 18:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679449903; cv=none; d=google.com; s=arc-20160816; b=iU1oksKZyWIHLOYVBUbZCJwN94Zg3Gf+0yBx+2mR45XcCkBwDCy7FKO65rbRkfr/Um AlKakvDQXwQhCbVtWHgSK9svnbFnsMTDIlzoxZ8NQ4gTWgDTx4D0s+UAxXzPXRFaJ0Ju WUM8HNXJnCAJ0SQrZYR/3Tbx0p3nYG3BYPgAn1KtBh9WgzSEN5ZT7lqsh0oEM5IkpEm2 5vWiCTBQvT4we7vNJuecXuc8y5D2NhjOxEG/93Xys18kzYwaHc6YH21Hjq1esDuXB8y+ IqoqNejPFAk5eUyy8qKkEgebtD9n/PGC0YiO/sq1SJVRfJMsFCMWxCeeNJs3srVLAeLM nfwA== 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=fnkm/lF+4QiievpuG5aB+/enRuP0EybYte+rz+ieDGI=; b=I29hfFejhjyTNnOJnE2f8yRR/YnolXlsZBE6R4u2UFTl45XH48ST+lCJdIBcChPIJD qLLQ2jDc/oE37cFZKfp8Y6Np0g4H75Leh5zYLYoB4EE+Rf3MxibvmgBSzwI8LOX9+pzr +dk9d5RGVf01tcVTrdNDm4CL6CGZnP1xLGvZGGmuGMgzuxwJT8Cq5rufpPfvVFgyurOa YxGYe4UhCWU7slcGHC+Sz0hOy/8sHG0SWjzT35jaCrZJEGU7sBgEoYvI/Wl4WdumXKN+ xUiHwVRFVuYakh/yFuqSKei5pKEEaaQ9sl6ujmq7Nphv/UAQPCom8P0jFjSW+e1TgmQI rnvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Rp5FDiWA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a170906328600b009241a3a03cbsi179162ejw.722.2023.03.21.18.51.20; Tue, 21 Mar 2023 18:51:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Rp5FDiWA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbjCVBhR (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Tue, 21 Mar 2023 21:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbjCVBhA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Mar 2023 21:37:00 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F6B3570A8; Tue, 21 Mar 2023 18:36:42 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id bf15so7814788iob.7; Tue, 21 Mar 2023 18:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679448995; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fnkm/lF+4QiievpuG5aB+/enRuP0EybYte+rz+ieDGI=; b=Rp5FDiWA5X39lZ0AaWfjiZv1khAeB+MoVUr7Ai8MiF8gVBMeD4aZh53+AskX75aflF hT/lK79E2mYKR+Qt3AOhPWnSLfMIowGZgi4OpOelnj01aJeg9UsN3cvwG5xVgIFbkJ/D rL+snB5ydTmd6BsGwav3dmoXKplnouRi/IpGImKwBiiesl1fa5b2uEZp24TqprO/xGvr w7XrAXvyQ13XQbD0Mbe1Pl84w4+F7su4LrAjPEKxGKJPrKGjtHENiv2z4bJKYZGsDKCb zTE7C+t+o9erPLtkZzwCBGD0/B+yQiUNviON3gfvZKHh/8RzQ6uTmd9mUZiHaU0z5cUu tSqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679448995; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fnkm/lF+4QiievpuG5aB+/enRuP0EybYte+rz+ieDGI=; b=q5fciN01zgSaWZIzcL9NFDU28HNT72W1Lbc2UCRXhDU8Z2sn4vQf20m8q3miwwTUL1 8ge4R0X5+ullNPeF0JFX2HQK5mWd1on1MnxMb7HkEUK5POO1/s6/F2UYLa3FGl26ZxN/ dVbHg651j0QvLYMWTbrbQgJUG0k0z7obJngZ/UpY21NtX4GpS5tYygKPzGZNnMq7C31o 57KWCBdQFcRmSsZTe78s7pK3AfX+kMcf34ZlRNYFztoewZs7SZCUQGmgfKIG67VJBPoJ mS5SGceWRdIgNcedX5WKepbJiA+lUH0WAZfuOIt3iatpcbnaCrGtBg7dwwOhNTfeETNF Nu1w== X-Gm-Message-State: AO0yUKX1mBFHxq+G2+tw4QjVJUjlLw7T/U6BEe96r6P2N4NKyTkFOXHA /Q/vXBRjaRm3B7SdxGc57t2G26KvNnw= X-Received: by 2002:a5e:850c:0:b0:758:b06f:6ab2 with SMTP id i12-20020a5e850c000000b00758b06f6ab2mr17376ioj.2.1679448995117; Tue, 21 Mar 2023 18:36:35 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id a22-20020a6b6616000000b007530bbfa577sm3925058ioc.18.2023.03.21.18.36.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 18:36:34 -0700 (PDT) From: Jim Cromie <jim.cromie@gmail.com> To: mcgrof@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jim Cromie <jim.cromie@gmail.com> Subject: [PATCH 3/4] module: add section-size to move_module pr_debug Date: Tue, 21 Mar 2023 19:36:22 -0600 Message-Id: <20230322013623.251401-4-jim.cromie@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230322013623.251401-1-jim.cromie@gmail.com> References: <20230322013623.251401-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761030862177390020?= X-GMAIL-MSGID: =?utf-8?q?1761030862177390020?= |
Series |
cosmetic fixes to module pr_debugs
|
|
Commit Message
Jim Cromie
March 22, 2023, 1:36 a.m. UTC
move_module() pr_debug's "Final section addresses for $modname".
Add section addresses to the message, for anyone looking at these.
no functional changes.
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
kernel/module/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/module/main.c b/kernel/module/main.c index e248a3697ffb..a2a8ed8564ae 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -2177,8 +2177,8 @@ static int move_module(struct module *mod, struct load_info *info) memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size); /* Update sh_addr to point to copy in image. */ shdr->sh_addr = (unsigned long)dest; - pr_debug("\t0x%lx %s\n", - (long)shdr->sh_addr, info->secstrings + shdr->sh_name); + pr_debug("\t0x%lx 0x%.8lx %s\n", (long)shdr->sh_addr, + (long)shdr->sh_size, info->secstrings + shdr->sh_name); } return 0;