Skip to content

Commit

Permalink
read: print byte as 2-digit hex
Browse files Browse the repository at this point in the history
This is a minor formatting improvement.
  • Loading branch information
syncom committed Feb 26, 2025
1 parent 8615ec4 commit bd00c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub fn read(device: String, slot: u16, raw: bool) -> Result<()> {

let pk = &pk[9..73];
eprintln!("~~ Key at slot {:#04x}", slot);
eprintln!("{:x?}", pk);
eprintln!("{:02x?}", pk);

if raw {
std::io::stdout().write_all(pk)?;
Expand Down

0 comments on commit bd00c9f

Please sign in to comment.