From: Kostya Shishkov Date: Sat, 14 Dec 2019 09:44:47 +0000 (+0100) Subject: core/test: print generated hash in the expected format X-Git-Url: https://git.nihav.org/?p=nihav.git;a=commitdiff_plain;h=96eff47e92036a7453c5eb08a1d01baceffb98e4 core/test: print generated hash in the expected format --- diff --git a/nihav-core/src/test/dec_video.rs b/nihav-core/src/test/dec_video.rs index 9ccefd5..7db25b8 100644 --- a/nihav-core/src/test/dec_video.rs +++ b/nihav-core/src/test/dec_video.rs @@ -430,7 +430,9 @@ println!("frame pts {:?} hash {}", pkt.get_pts(), md5); md5 = MD5::new(); frame_checksum(&mut md5, frm); md5.finish(); -println!("frame pts {:?} hash {}", pkt.get_pts(), md5); + let mut hash = [0u32; 4]; + md5.get_hash(&mut hash); +println!("frame pts {:?} hash [0x{:08x}, 0x{:08x}, 0x{:08x}, 0x{:08x}],", pkt.get_pts(), hash[0], hash[1], hash[2], hash[3]); }, }; }