From 7568a0790fa1f9abc16310cb02cc8c08328a9e2c Mon Sep 17 00:00:00 2001 From: Steffen Eiden Date: Tue, 5 May 2026 10:34:57 +0200 Subject: [PATCH] pv: Fix error description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The error texts printed a hardcoded .0 instead of the actual value. Fix this by using the proper string format arguments. Reviewed-by: Jan Höppner Fixes: 61c5d7d43140 ("rust/pv: Attestation generation and verification support") Signed-off-by: Steffen Eiden Signed-off-by: Jan Höppner --- rust/pv/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/pv/src/error.rs b/rust/pv/src/error.rs index 73bc6200..9a25a452 100644 --- a/rust/pv/src/error.rs +++ b/rust/pv/src/error.rs @@ -90,11 +90,11 @@ pub enum Error { #[error("Input does not contain an attestation request")] NoArcb, - #[error("The attestation request has an unknown version (.0)")] + #[error("The attestation request has an unknown version {0}")] BinArcbInvVersion(u32), #[error( - "The attestation request encrypted sice is to0 small (.0). Request probably tampered with." + "The attestation request encrypted sice is to0 small {0}. Request probably tampered with." )] BinArcbSeaSmall(u32),