Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btf: correct printing size of Int type in bytes
It seems OK that the printing size of Int type in bits. But while printing a struct, like 'struct sk_buff', it seems strange that the printing size units of Int type and Struct/Union type are different: : offset=1088 : Union[fields=2] size: 4 csum: offset=0 csum: Typedef:"__wsum"[Typedef:"__u32"] __wsum: Typedef:"__u32"[Int:"unsigned int"] __u32: Int:"unsigned int"[unsigned size=32] : offset=0 : Struct[fields=2] priority: offset=1120 priority: Typedef:"__u32"[Int:"unsigned int"] __u32: Int:"unsigned int"[unsigned size=32] So, it's better to make the printing size of Int type in bytes same as Struct/Union type. Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
- Loading branch information