Skip to content

Commit 5b1bdca

Browse files
committed
fwidgen: Include string identifier for the digest in output.
1 parent 75c096c commit 5b1bdca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fwidgen/src/main.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,12 @@ fn main() -> Result<()> {
200200
digest.update(vec![0xff; pad].as_ref());
201201

202202
let digest = digest.finalize();
203+
let name = args
204+
.digest
205+
.to_possible_value()
206+
.ok_or(anyhow!("Invalid digest"))?;
203207

204-
println!("{}", hex::encode(digest));
208+
println!("{};{}", name.get_name(), hex::encode(digest));
205209

206210
Ok(())
207211
}

0 commit comments

Comments
 (0)