More precise debug output.

This commit is contained in:
Heiko Schaefer 2021-09-13 19:45:17 +02:00
parent d5651e96bb
commit 245740febc

View file

@ -83,7 +83,11 @@ impl Command {
/// Encode len for Lc field /// Encode len for Lc field
fn make_lc(len: u16, ext_len: bool) -> Vec<u8> { fn make_lc(len: u16, ext_len: bool) -> Vec<u8> {
if !ext_len { 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 { if len == 0 {