From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9067C3A257E for ; Wed, 1 Jul 2026 06:11:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782886312; cv=none; b=H5ybTDYNMEazNFibaO8JIYaDRo2j1eftNee0I2lzIX96VoKo/Pg06sRThABtmDMxJ+YUHdMzE6d/zBCaB3oZWIY8Z2aEpIrXb6hDVv3aM1KTN92mVnhJ9ANLcIUnAuoUZBtQrGdoYDuHtZ9oQ4xsfaoy/HCUGFeS2WXOAw8pNoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782886312; c=relaxed/simple; bh=7FBU8wLQenp8S4RfUBTR/9Bb7RAV7+7hhhc02OaqVjo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jdxe+Pdzpg4LpPBNnQ8d4ZZZ12CTWd99mBBCGYrdng6s4blUY/DGrOT+2Hc7RRWgU3s1dqGLaOFqrIDOiI0LDARF65eSjoAHqHYDJ2r/qjJjXrE35GlhhoyyZOgNQCyyG482p/405aQxZ3mPxcvZO56D+T8R9tWfAiCbcy1nRJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=dRy6Fv69; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="dRy6Fv69" 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=1782886308; 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: in-reply-to:in-reply-to:references:references; bh=hMPk4xo0goYwl32b+O7Fi24CGRO5SYSFgHPQLi10p/I=; b=dRy6Fv69wFY6/TS8kxLq8V17UqY5UqwiNnjxmqBc98kZZYGtZusJyPaE5zaXfTr83VVPV7 lgChebnU1/F5pA/mV3qvqvAFyLHQK9XWZYlBh87qOn9Igf4EK0QeKUzUwV4nY2smGTjVqW Os8P27TOgYPMbiXjQk3DZRE1HZHa+v0= From: Ye Liu To: Andrew Morton , Vlastimil Babka Cc: Ye Liu , Zi Yan , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Johannes Weiner , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 5/9] mm/page_owner: add missing newline to count_threshold format string Date: Wed, 1 Jul 2026 14:10:48 +0800 Message-ID: <20260701061101.344679-6-ye.liu@linux.dev> In-Reply-To: <20260701061101.344679-1-ye.liu@linux.dev> References: <20260701061101.344679-1-ye.liu@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT The DEFINE_SIMPLE_ATTRIBUTE format string for page_owner_threshold_fops is missing a trailing \n. simple_attr_read() uses scnprintf() with the format string, which does not append a newline, so reading /sys/kernel/debug/page_owner_stacks/count_threshold produces output without a terminating newline. Add the missing \n to match the standard debugfs attribute convention. Signed-off-by: Ye Liu Reviewed-by: Zi Yan Reviewed-by: Vlastimil Babka (SUSE) --- mm/page_owner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_owner.c b/mm/page_owner.c index fe2bf2274d8a..7520718f63f1 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -974,7 +974,7 @@ static int page_owner_threshold_set(void *data, u64 val) } DEFINE_SIMPLE_ATTRIBUTE(page_owner_threshold_fops, &page_owner_threshold_get, - &page_owner_threshold_set, "%llu"); + &page_owner_threshold_set, "%llu\n"); static int __init pageowner_init(void) -- 2.43.0