mirror of
https://github.com/redstrate/Kawari.git
synced 2025-06-20 23:17:45 +00:00
When failing to parse a packet segment, print it's size
This can be helpful to determine what the heck this opcode is.
This commit is contained in:
parent
355572d97a
commit
777cb8b2a3
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ pub struct PacketSegment<T: ReadWriteIpcSegment> {
|
||||||
#[brw(pad_after = 2)] // padding
|
#[brw(pad_after = 2)] // padding
|
||||||
pub segment_type: SegmentType,
|
pub segment_type: SegmentType,
|
||||||
#[brw(args(&segment_type, size, encryption_key))]
|
#[brw(args(&segment_type, size, encryption_key))]
|
||||||
|
#[br(err_context("segment size = {}", size))]
|
||||||
pub data: SegmentData<T>,
|
pub data: SegmentData<T>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue