From patchwork Sat Jan 23 02:32:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Zhang X-Patchwork-Id: 12041051 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 B4DEFC433DB for ; Sat, 23 Jan 2021 02:32:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3A74A23B2A for ; Sat, 23 Jan 2021 02:32:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A74A23B2A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3E6156B0005; Fri, 22 Jan 2021 21:32:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3709D6B0007; Fri, 22 Jan 2021 21:32:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25F686B0008; Fri, 22 Jan 2021 21:32:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 099D66B0005 for ; Fri, 22 Jan 2021 21:32:13 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C160A180ACEE9 for ; Sat, 23 Jan 2021 02:32:12 +0000 (UTC) X-FDA: 77735465304.24.wave44_4b11f7527570 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id A26191A4A0 for ; Sat, 23 Jan 2021 02:32:12 +0000 (UTC) X-HE-Tag: wave44_4b11f7527570 X-Filterd-Recvd-Size: 3841 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by imf24.hostedemail.com (Postfix) with ESMTP for ; Sat, 23 Jan 2021 02:32:12 +0000 (UTC) Received: by mail-pl1-f182.google.com with SMTP id b8so4351472plx.0 for ; Fri, 22 Jan 2021 18:32:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WlCYHQaPX6yYThqq6iqs2rd0OVk5cVfU0u96IS3rFGQ=; b=RgkAqRIKeZKtC6cw/hLL+vVUasoqrDxKFje1ofgtHe++Jp8klEwDV/Ze9BP53rgbJT zyimehOuaifByTxmk0rMU3hXUJsonEFsWv1u8kjCTOGyjaca8Qdxc/XvvY6hPAshqHUP 0C+hM/mifjsPkzWp18AzID5N2vwMIqw8g3w4O6cldoCCphSXDBuXe9W4pLkNsSUyTDoK PrGacXK/yoTFXmxgz3eBR2OyN59v/RWOXSqamEqajuMt++5nEIZknOnAI5dKrlmWg8I+ lMTet8Qfk6JtrfiKLaqj3nlzL/3TM4Rk6dNLP0gbz6no45T5ayv+Gb2G60mAVH/zdJl3 Dozg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WlCYHQaPX6yYThqq6iqs2rd0OVk5cVfU0u96IS3rFGQ=; b=F48oEP+PaqocULdelZT+s18+s1MQeUD4B/DzWK6I+eCDJ+Z+nBbltHKC7FidvIz3Kv 9RLzUGW/joO7KpraARhEbY/HbUvfCvhefxayzT0tgwhL0jyPXq9C2xauAmeakyonvr5f bo5HWHvOxVtcaxG5uFYWBAp/b0acdMa+PI9qjaNTn4NxhLd/B+pTPuWv146smzjNYdru I9iPepVdvWuUPKFdnAGeaPexY4+pWoOVE7feKOyVOzfmbevG+KcmSuvJ2vXxe8FH2UkD 4xUeD1vSj0fFemCNZoexqDXvQqh2195DWavyfTZRzM5+ZrK/QeOxRoJoYRVa6XB2lI4H FAAQ== X-Gm-Message-State: AOAM532QgtdinxEBYVkdvFahu1cTyy1gRBnm8fgZUf+EOsX1gFHgL86A juMSgX2jq2k9ueUnk1zMW6Y= X-Google-Smtp-Source: ABdhPJzK1T8HWc7If0w2WyuBba+z7rUjPE7qEFfA0RVBG70ze70fTsBWvWzvSu5EjJeaegfOnG8llg== X-Received: by 2002:a17:90a:77c1:: with SMTP id e1mr8902647pjs.141.1611369131333; Fri, 22 Jan 2021 18:32:11 -0800 (PST) Received: from localhost.localdomain ([125.227.22.95]) by smtp.gmail.com with ESMTPSA id k9sm10368897pji.8.2021.01.22.18.32.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jan 2021 18:32:11 -0800 (PST) From: Stephen Zhang To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Stephen Zhang Subject: [PATCH] mm/swapfile.c: fix debugging information problem Date: Sat, 23 Jan 2021 10:32:00 +0800 Message-Id: <1611369120-2276-1-git-send-email-stephenzhangzsd@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Once the function name is changed, it may be easy to forget to modify the corresponding code here. Signed-off-by: Stephen Zhang --- mm/swapfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/swapfile.c b/mm/swapfile.c index 9fffc5a..12a18b8 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -1158,13 +1158,13 @@ static struct swap_info_struct *__swap_info_get(swp_entry_t entry) return p; bad_offset: - pr_err("swap_info_get: %s%08lx\n", Bad_offset, entry.val); + pr_err("%s: %s%08lx\n", __func__, Bad_offset, entry.val); goto out; bad_device: - pr_err("swap_info_get: %s%08lx\n", Unused_file, entry.val); + pr_err("%s: %s%08lx\n", __func__, Unused_file, entry.val); goto out; bad_nofile: - pr_err("swap_info_get: %s%08lx\n", Bad_file, entry.val); + pr_err("%s: %s%08lx\n", __func__, Bad_file, entry.val); out: return NULL; } @@ -1181,7 +1181,7 @@ static struct swap_info_struct *_swap_info_get(swp_entry_t entry) return p; bad_free: - pr_err("swap_info_get: %s%08lx\n", Unused_offset, entry.val); + pr_err("%s: %s%08lx\n", __func__, Unused_offset, entry.val); out: return NULL; }