History

ieee802154: trace: fix endian convertion

This patch fix endian convertions for extended address and short address handling when TP_printk is called.

Alexander Aring committed 11 years ago

Commit 1add1561 parent d2c8bf51 file · +3 −2Browse files

Unified · Split

net/ieee802154/trace.h+3−2
@@ -58,7 +58,7 @@ TRACE_EVENT(802154_rdev_add_virtual_intf, · 57 unmodified lines
58 ),58 ),
59 TP_printk(WPAN_PHY_PR_FMT ", virtual intf name: %s, type: %d, ea %llx",59 TP_printk(WPAN_PHY_PR_FMT ", virtual intf name: %s, type: %d, ea %llx",
60 WPAN_PHY_PR_ARG, __get_str(vir_intf_name), __entry->type,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
64TRACE_EVENT(802154_rdev_del_virtual_intf,64TRACE_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 __le16 le16arg),138 __le16 le16arg),
139 TP_ARGS(wpan_phy, wpan_dev, le16arg),139 TP_ARGS(wpan_phy, wpan_dev, le16arg),
140 TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT ", sa: 0x%04x",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
144TRACE_EVENT(802154_rdev_set_backoff_exponent,145TRACE_EVENT(802154_rdev_set_backoff_exponent,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t