From 245740febc0c3353769e866fe91903eb47eae5cf Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Mon, 13 Sep 2021 19:45:17 +0200 Subject: [PATCH] More precise debug output. --- openpgp-card/src/apdu/command.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openpgp-card/src/apdu/command.rs b/openpgp-card/src/apdu/command.rs index 83f7c23..d0bdb2e 100644 --- a/openpgp-card/src/apdu/command.rs +++ b/openpgp-card/src/apdu/command.rs @@ -83,7 +83,11 @@ impl Command { /// Encode len for Lc field fn make_lc(len: u16, ext_len: bool) -> Vec { if !ext_len { - assert!(len <= 0xff, "unexpected: len > 0xff, but ext says Short"); + assert!( + len <= 0xff, + "unexpected: len = {:x?}, but ext says Short", + len + ); } if len == 0 {