This patch fix endian convertions for extended address and short address handling when TP_printk is called.
Unified · Split
| @@ -58,7 +58,7 @@ TRACE_EVENT(802154_rdev_add_virtual_intf, · 57 unmodified lines | ||
| 58 | 58 | ), |
| 59 | 59 | TP_printk(WPAN_PHY_PR_FMT ", virtual intf name: %s, type: %d, ea %llx", |
| 60 | 60 | WPAN_PHY_PR_ARG, __get_str(vir_intf_name), __entry->type, |
| 61 | − __entry->extended_addr) | |
| 61 | + __le64_to_cpu(__entry->extended_addr)) | |
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | TRACE_EVENT(802154_rdev_del_virtual_intf, |
| @@ -138,7 +138,8 @@ DEFINE_EVENT_PRINT(802154_le16_template, 802154_rdev_set_short_addr, · 73 unmodified lines | ||
| 138 | 138 | __le16 le16arg), |
| 139 | 139 | TP_ARGS(wpan_phy, wpan_dev, le16arg), |
| 140 | 140 | TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT ", sa: 0x%04x", |
| 141 | − WPAN_PHY_PR_ARG, WPAN_DEV_PR_ARG, __entry->le16arg) | |
| 141 | + WPAN_PHY_PR_ARG, WPAN_DEV_PR_ARG, | |
| 142 | + __le16_to_cpu(__entry->le16arg)) | |
| 142 | 143 | ); |
| 143 | 144 | |
| 144 | 145 | TRACE_EVENT(802154_rdev_set_backoff_exponent, |