From patchwork Fri Oct 18 10:31:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13841558 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A493D2FFEC for ; Fri, 18 Oct 2024 10:32:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3460F6B0083; Fri, 18 Oct 2024 06:32:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2F5326B0085; Fri, 18 Oct 2024 06:32:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E4446B0088; Fri, 18 Oct 2024 06:32:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 00FD76B0083 for ; Fri, 18 Oct 2024 06:32:09 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2A4D41406B7 for ; Fri, 18 Oct 2024 10:31:57 +0000 (UTC) X-FDA: 82686357852.14.A0C7D18 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) by imf05.hostedemail.com (Postfix) with ESMTP id EABB9100005 for ; Fri, 18 Oct 2024 10:31:46 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=ZRFybtYX; spf=pass (imf05.hostedemail.com: domain of thorsten.blum@linux.dev designates 95.215.58.171 as permitted sender) smtp.mailfrom=thorsten.blum@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729247453; a=rsa-sha256; cv=none; b=W3/z5p6ZVTj1fg85y6XJSXpDRzR0DIMCj0G0t+75Y7tKxE88SKHsIW9sDDksB2snWP5nno RXCYVUD4WsZ59JS4Q04LVnf+hiA/foXl0ykho8xnjvnGks9ahxsLhEfGDmgSTWFS2drquE Qh4xS6hoFelfZJ1PfL2shi/KGm3Vd8g= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=ZRFybtYX; spf=pass (imf05.hostedemail.com: domain of thorsten.blum@linux.dev designates 95.215.58.171 as permitted sender) smtp.mailfrom=thorsten.blum@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729247453; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=4tTv7zOc2n71G6HE+wtmzbGGssPfw6n3LZRNIY9OY0A=; b=nya1OZEzgSEvvBWrcSYSqzylxVPwNBDv5p3U07/+FO2sgnsfuf2Nr331kH2enrtwa4QfKf 5shdu1jV9n8WWeYimRaxxMwrMez2o0889W6MSFQ4BGyWzlXOpRbxia8Lz7hmtml5kRSlmS NSe2j1y8j+WCd2nODI1g6U7e1M3nNTA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1729247525; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4tTv7zOc2n71G6HE+wtmzbGGssPfw6n3LZRNIY9OY0A=; b=ZRFybtYXRACrmBO3cafx7ijbwet4tzlTEH+qfjL+sgAGnYqt4P//xjBS+dcrX/d39+acpY Ca1w0VOGv1ChvvlIDC0gF+PamgHMXXn8gCYqdoKieZhGj4GQRCQsGJk53j6rQuHKrHfyN1 zEbwAPV4mV1W9VZDeH24LWzBRbU28Cs= From: Thorsten Blum To: Mike Rapoport , Andrew Morton Cc: Thorsten Blum , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm: Use str_on_off() helper function in report_meminit() Date: Fri, 18 Oct 2024 12:31:51 +0200 Message-ID: <20241018103150.96824-2-thorsten.blum@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Stat-Signature: nskesirww4jre5dh6id1dcurysbecr1y X-Rspamd-Queue-Id: EABB9100005 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1729247506-485324 X-HE-Meta: U2FsdGVkX1+ORY0gCFoIxl/Y1h/g5BBw+zNPuB71ZjB5MWeRM53w4g9q+r1Ml3o7j0kC8jJr20RPG9/2yDY+m0otB42EepwuGg5EzXwiVeRJzQeMHHE3eHkGiaExUs88zOCoqa0e2bWNJ99kBmqZLdcrxh6DsvqXrK1djUe3LiOwFkMWF6uRObhK/vBRPPQzGIyCwSw2uOxoTog7wfmPkkAe56WNm+Wcq/hanNG/BH+SM46LSrbYK+nd9N7cIMiyVtzecG0rTSLThK8Z0RI1ZvUsKeXhO44dpZWW2waQjabGEAWUwu1gCcEQon1/yS8oMBjzqgmp2WBflJjlzLngJPWQDhN2ti1FfJKlL+sZGq6XBqeV9Ck7UcDN170hCCCziZixD10bQzhlxIsBa56iDt9Kxomz9U0DM/j4HHI0gsyEHFl4ADNE8FTSa3RpoG9+j+wIk4sLvV35JEgOC+LY7NyxYrKHvNzx6wuIJ5GLLFJw7yM2PWwdAMATA9ICZd2kQ+a+Z7PJhXQhw8OCZFBzdRt2UCziBmTa9Rm9Vtzbnpd31XencOh4946WCg0OQAEO5leVSpqax2PBEKGYLy/24feNZNdqaZFblH5+gOrvO5eNmGG0efoFN5MMPdbYfI0URZsN4i22dqVlb+0TF9PBzOcdqZhzeyVeHSNKBxU4Q88EpybUl7k22hfVtcbsyNMSjiygpgMRAmM1ODuKuBdHYQ1XJw5TBIRl7U+z/Ei92/SGk8gemjn/eOFNbR0ZcjY92OoB3AyjK0d3ZPfUGjvFR0LdHn4P3ukv/3VloQm0kW0b+v6yzQuyPkXiO+WHMLYx/fc71gnSXrIxDvAhWIW+jt/hDIijmJrySCUwbIcOg8w1StNLoMd5A1wsr8c64ClkDXEYVHokUofI1a25XDg2f0qt32GvUf7ohG/gJry+/WA4U4A6p3SahOuZDk/6tDYXvhh9Dw+MK5r+iEtq0eA 8QnEOWvI w3olYa7zfwnmKkzs6Ab+0zCC76sqYyQZpkb8semnNpw97yGLqMZJZLKTgQvpEck2FY2VfhCoamMmroXJ/n9xwsUF0tEA1pPljaC5Ndgb43n17pGGDNsTjqHZ3rtdIipnHuynQcj7e2LaTQ6ch2xJ327FWfW5GS6C19YmlhNQDWc4eIHc3uBggl91Z0g== 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: List-Subscribe: List-Unsubscribe: Remove hard-coded strings by using the helper function str_on_off(). Signed-off-by: Thorsten Blum --- mm/mm_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/mm_init.c b/mm/mm_init.c index 4ba5607aaf19..253972926183 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -2573,8 +2573,8 @@ static void __init report_meminit(void) stack = "off"; pr_info("mem auto-init: stack:%s, heap alloc:%s, heap free:%s\n", - stack, want_init_on_alloc(GFP_KERNEL) ? "on" : "off", - want_init_on_free() ? "on" : "off"); + stack, str_on_off(want_init_on_alloc(GFP_KERNEL)), + str_on_off(want_init_on_free())); if (want_init_on_free()) pr_info("mem auto-init: clearing system memory may take some time...\n"); }