From nobody Sun Feb 8 18:09:17 2026 Received: from cvsmtppost02.nm.naver.com (cvsmtppost02.nm.naver.com [114.111.35.100]) (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 CA6DD2C9D for ; Fri, 2 Jan 2026 06:48:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.111.35.100 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767336509; cv=none; b=PAijkUAOxWUM+LQceQ01p8rw6MYlH4jXka0+UKh7nXulzymyYSL0eCldPpDiUyytZ6ck8UNr/fGvNHqLHzKdyyOcsam7MPKMqheivQIdyC4ixHzvGM9ANnL49L3IPO96p++KaRRii6Z7w2f/L4ygN84ajdRwplmhJeg4tN2/Wbw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767336509; c=relaxed/simple; bh=48SYhs/X4jsPP8C80egZIva9TkXMlostO3H/3nqNKjE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q0a6OrDuNfAjnAbkCzYqUbztIt7S8E0Pwz2qoO1QFcgVbkb2OoyCKcKaCvx0flD7gooc4bQrrbQWX+01eu/kkmoPevLN2an21lZ7M5pUTg0k+hFTgas7hIGwbJQtznFEOyxoSNckg0EzCxCd06fX7ZehaFnQYC1OztcpKAKTGH8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=naver.com; spf=pass smtp.mailfrom=naver.com; dkim=pass (2048-bit key) header.d=naver.com header.i=@naver.com header.b=Iz++bdWZ; arc=none smtp.client-ip=114.111.35.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=naver.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=naver.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=naver.com header.i=@naver.com header.b="Iz++bdWZ" Received: from mvsendbo03.nm ([10.179.34.203]) by cvsmtppost02.nm.naver.com with ESMTP id g+D-dFWsTpuAMBf04TLA9g for ; Fri, 02 Jan 2026 06:28:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=naver.com; s=s20171208; t=1767335290; bh=48SYhs/X4jsPP8C80egZIva9TkXMlostO3H/3nqNKjE=; h=From:To:Subject:Date:Message-ID:From:Subject:Feedback-ID: X-Works-Security; b=Iz++bdWZ9Z5ODaAslaPxiEnF5wr5M6+jXMk4hG1z64gakvftXLRuNM68XEpeaKeUY rdFSU/SYHWLeqtJEQsK6IIKc29J69nrTcnXFvysPUQ+jjkqgT6uJriB3wpHxGb0HG6 C/J32J+1swKTKnGeJFPdRjdfo/TwXUjX+jDBV/QF1JCqVBlTdaUH8nyKNYWHUe0+5M Dnq9iO+V9R+7CRWeu5BlMEMF7OqJy8nSb360c2qxX9AWZgNPnTaQCiwRnzTacsCZh9 ksxzC736NXGAR9L6i+1t6QD5zQA/bYy4jlrMVKKH61y+09UNET0mWFUoDdIp/nc3A2 U1FoJPg1I7ETg== X-Session-ID: umXgMRtkTQeUjQPNeNv09A X-Works-Send-Opt: E/YqjAJYjHmwKo2qKqJYFquqFNwkx0eFjAJYKg== X-Works-Smtp-Source: /qYmKqbrFqJZ+Hmmax2Z+6E= Received: from JMW-Ubuntu.. ([14.38.141.199]) by cvnsmtp001.nm.naver.com with ESMTP id umXgMRtkTQeUjQPNeNv09A for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 02 Jan 2026 06:28:10 -0000 From: Minu Jin To: arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Minu Jin Subject: [PATCH] char: mem: fix typo and use pr_err() for logging Date: Fri, 2 Jan 2026 15:27:59 +0900 Message-ID: <20260102062759.3749606-1-s9430939@naver.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix a typo in the comment of read_mem(): funcion -> function Replace a raw printk() call in chr_dev_init() with pr_err(). The original call lacked a log level, which is discouraged. Using pr_err() ensures the error is properly categorized and follows modern logging practices. Signed-off-by: Minu Jin --- drivers/char/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 52039fae1594..4c6bb10d1508 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c @@ -76,7 +76,7 @@ static inline bool should_stop_iteration(void) } =20 /* - * This funcion reads the *physical* memory. The f_pos points directly to = the + * This function reads the *physical* memory. The f_pos points directly to= the * memory location. */ static ssize_t read_mem(struct file *file, char __user *buf, @@ -765,7 +765,7 @@ static int __init chr_dev_init(void) int minor; =20 if (register_chrdev(MEM_MAJOR, "mem", &memory_fops)) - printk("unable to get major %d for memory devs\n", MEM_MAJOR); + pr_err("unable to get major %d for memory devs\n", MEM_MAJOR); =20 retval =3D class_register(&mem_class); if (retval) --=20 2.43.0