From nobody Mon Feb 9 16:28:27 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D2EC525771; Sun, 4 May 2025 15:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746373295; cv=none; b=h6bIlULfPIU0sWRPh99P9gCmJkq6Fxwekmrfl/aH5W+pbbw5XtJMudJxwhxaQKsDI+RHxZ0TUAsyko18t4+PexM3IAnfdJ8MVpqfYaJ0LXwQ05nDOM9D9yfA9tKXcZlnOlpUskBEq/hL+2b8qEEdP8F/tm0qihT6RCuPF31vzjg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746373295; c=relaxed/simple; bh=1cBdEpcvMFybvOQ8uSvYyiWsiuwoC6kZ4LAfj3DpQ84=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pINPVwfI2hCjok4834jNXIixh9SrPY/IMkmrbhttViVrs9vOwhU8xUIzD4ntWlyHOQTy6qK5qkOJjxuexe0OGQIkQ9kr9CvoiT6um3M3ovJHy+S4uPXtRrhb5pqTZ5cQ/vGDUvzolGCdbIPT7gjEtj3JSrNjM3zsB5Xhd1kuhCA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d6anp4QV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d6anp4QV" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5DD6FC4CEED; Sun, 4 May 2025 15:41:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746373295; bh=1cBdEpcvMFybvOQ8uSvYyiWsiuwoC6kZ4LAfj3DpQ84=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=d6anp4QVmkOZLpZzByHuo4sMoF4qFAlz/JYaCg3I524uarG6Splei2T1CV/5CbKbo MC5HL1+7pxUPx4JQnAv0P6Qdut7bP8h+aE0KVL02ErtMKZs+JYaNeReuGTGp80+2aQ vthjXPcdoWxj+nwwP7rIX605qEDxxVKF7OZURBDsxWqX5s9Exbx70F4o4+vrsSjE7P nIvX1dp9XxHAeYydNoRaiuO3So4XlLJf6T4zfX24whNz1VX7iyVAsXSgjtAYm149eI Yj9ZbGGoNn3pcLBnxvOjPmJsYQ5xnRqm73Mzpl0ywcLJjv7CEsKvoYhsl/7QaFiV3l +34M9++uPOWSQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CA9BC3ABB6; Sun, 4 May 2025 15:41:35 +0000 (UTC) From: Alban Kurti via B4 Relay Date: Sun, 04 May 2025 17:41:14 +0200 Subject: [PATCH v4 1/2] rust: samples: add missing newline to pr_info! calls in rust_print_main Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250504-pr_info-newline-fix-v4-1-53467c401eb6@invicto.ai> References: <20250504-pr_info-newline-fix-v4-0-53467c401eb6@invicto.ai> In-Reply-To: <20250504-pr_info-newline-fix-v4-0-53467c401eb6@invicto.ai> To: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Vincenzo Palazzo , Xiangfei Ding Cc: Fiona Behrens , Alban Kurti , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1746373294; l=1213; i=kurti@invicto.ai; s=20250504; h=from:subject:message-id; bh=WqmT9bkLvd4AJUblF1ztL4Nd9ksadB1FIaF6HWuwtwM=; b=60ax0KZSu0JTP+EZvd1+mR/HafmRHqulLSczy1JexTcm9XkIAOj2Gkr3yi6SjHvNU2JtPr2xT GEVLEpXPZLgAs2juJZCq2slmDnoy6qiQLckZiqWhiWW3wB2uwtsxq8C X-Developer-Key: i=kurti@invicto.ai; a=ed25519; pk=7724GF1zrN6rA3Z2xkyAmVGkoOQxv7bMUvXB4IsIPUs= X-Endpoint-Received: by B4 Relay for kurti@invicto.ai/20250504 with auth_id=398 X-Original-From: Alban Kurti Reply-To: kurti@invicto.ai From: Alban Kurti Fixes: f431c5c581fa ("samples: rust: print: Add sample code for Arc printin= g") Reported-by: Miguel Ojeda Closes: https://github.com/Rust-for-Linux/linux/issues/1139 Signed-off-by: Alban Kurti --- samples/rust/rust_print_main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/rust/rust_print_main.rs b/samples/rust/rust_print_main= .rs index 8ea95e8c2f3647650577c4e9dab853e0e3a8bf20..899a6d25f4dc0e0ccebdf4f95aa= af780b425e3af 100644 --- a/samples/rust/rust_print_main.rs +++ b/samples/rust/rust_print_main.rs @@ -23,10 +23,10 @@ fn arc_print() -> Result { let b =3D UniqueArc::new("hello, world", GFP_KERNEL)?; =20 // Prints the value of data in `a`. - pr_info!("{}", a); + pr_info!("{}\n", a); =20 // Uses ":?" to print debug fmt of `b`. - pr_info!("{:?}", b); + pr_info!("{:?}\n", b); =20 let a: Arc<&str> =3D b.into(); let c =3D a.clone(); @@ -53,7 +53,7 @@ fn arc_dyn_print(arc: &Arc) { } =20 // Pretty-prints the debug formatting with lower-case hexadecimal inte= gers. - pr_info!("{:#x?}", a); + pr_info!("{:#x?}\n", a); =20 Ok(()) } --=20 2.49.0 From nobody Mon Feb 9 16:28:27 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D2F8C1C84AF; Sun, 4 May 2025 15:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746373295; cv=none; b=ImVQpw7W6NoOMz6XcQYxfGFl9/l/WYdHzD2lG4g2hk0mkYC9Lm8vQIzQPSfxC7xJ8b2NXSkl8q2s+aSNfXqmr/QJM8nR6GZuvfSjdYeN2KF28eBh2YGD/K2WoepfSiK5f+DIHPjvb4TI2kbsE8sT+7TI8iaLz9CjWcnNhq9Eywg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746373295; c=relaxed/simple; bh=QZBWP+bl9RsydAJjbEm+QEiZ1vGYgQsHPscH0XJc0fw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hSHhG/4GJWv5ND/i5ELlwAOeG7elZVxjfoF6H0H0D5ZE5PdjhYZQY1bDgT3TSNI7HYsALL53RWY66hW8+IjAcrKx4cQG03/r48cRj6SG7e/R5n7aXnlswnSwu0pS09S2exnxHz2NcnRrFUYTj+zbQ4LWI0vx+DyFjC5NiYd3n40= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fwVb/ZZG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fwVb/ZZG" Received: by smtp.kernel.org (Postfix) with ESMTPS id 6AA50C4CEF0; Sun, 4 May 2025 15:41:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746373295; bh=QZBWP+bl9RsydAJjbEm+QEiZ1vGYgQsHPscH0XJc0fw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=fwVb/ZZGPXCGvSaRdN3xRY+NpJMN/6YvAoj8BXiVQZ4fwOrjjhmxHXIG2w3jx88H/ WW1AztDicQFA7rlEW2kdbJ0zo6b4p/vTZnyhXFLODV1BXpmjMIDNfdO3cqFS2IgSZW IYnqdBrcxu/vgAJ5FxgGhyZu58qIostmfm2ibJwKXA/Vf+wyc/NGqzdvcUuM+/IqhH /4qkYsRE/WyTn/j3OizaM+/FFZvmYApxtH+4drQCGj8kJv6pZU4iDzjNa5W63w9I0e D1zkSWHw2rtyS9v2PEOqhjYPSvEFHv9iZ43kJOxXYIpwofJLH+AtF8l9OzxDqcp7+h qZ5Ueg/RcI6Vg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59BC4C3ABAC; Sun, 4 May 2025 15:41:35 +0000 (UTC) From: Alban Kurti via B4 Relay Date: Sun, 04 May 2025 17:41:15 +0200 Subject: [PATCH v4 2/2] rust: samples: add missing newline to pr_info! calls in rust_print_main Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250504-pr_info-newline-fix-v4-2-53467c401eb6@invicto.ai> References: <20250504-pr_info-newline-fix-v4-0-53467c401eb6@invicto.ai> In-Reply-To: <20250504-pr_info-newline-fix-v4-0-53467c401eb6@invicto.ai> To: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Vincenzo Palazzo , Xiangfei Ding Cc: Fiona Behrens , Alban Kurti , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1746373294; l=937; i=kurti@invicto.ai; s=20250504; h=from:subject:message-id; bh=DSEqWE0u/GE7NzFen9Dcl1jZYuo1Vd0DtsX8YqbKu8E=; b=qaYzqjfuy5W+yyNJtWYK7ZNq5t4Jl79u9xQ7m/jeUVt4zs7VMoZaCVvipoAtqHHWkNQlym+xF ejebzOxIRscAW5pa4AN0uJ3E3Zg5j8+sBXF5ONHtW2IVocSzjZWjwM/ X-Developer-Key: i=kurti@invicto.ai; a=ed25519; pk=7724GF1zrN6rA3Z2xkyAmVGkoOQxv7bMUvXB4IsIPUs= X-Endpoint-Received: by B4 Relay for kurti@invicto.ai/20250504 with auth_id=398 X-Original-From: Alban Kurti Reply-To: kurti@invicto.ai From: Alban Kurti Fixes: 47cb6bf7860c ("rust: use derive(CoercePointee) on rustc >=3D 1.84.0") Reported-by: Miguel Ojeda Closes: https://github.com/Rust-for-Linux/linux/issues/1139 Signed-off-by: Alban Kurti --- samples/rust/rust_print_main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/rust/rust_print_main.rs b/samples/rust/rust_print_main= .rs index 899a6d25f4dc0e0ccebdf4f95aaaf780b425e3af..ed90f78d0b9125f3806d6e13e5a= 3352dec935140 100644 --- a/samples/rust/rust_print_main.rs +++ b/samples/rust/rust_print_main.rs @@ -42,7 +42,7 @@ fn arc_print() -> Result { =20 use core::fmt::Display; fn arc_dyn_print(arc: &Arc) { - pr_info!("Arc says {arc}"); + pr_info!("Arc says {arc}\n"); } =20 let a_i32_display: Arc =3D Arc::new(42i32, GFP_KERNEL= )?; --=20 2.49.0