byte_buffer: display buffer when writing aligned data

This commit is contained in:
Matt Bilker
2018-08-17 20:23:19 -04:00
parent 2b95b790ac
commit c7b695199a

View File

@@ -211,7 +211,7 @@ impl ByteBufferWrite {
let old_pos = self.data_buf_offset();
let size = data_type.size * data_type.count;
trace!("write_aligned => old_pos: {}, size: {}", old_pos, size);
trace!("write_aligned => old_pos: {}, size: {}, data: 0x{:02x?}", old_pos, size, data);
if size != data.len() {
return Err(KbinErrorKind::SizeMismatch(data_type, size, data.len()).into());