* [PATCH wpan-next] ieee802154: trace: fix endian convertion
@ 2015-04-29 8:06 Alexander Aring
2015-04-29 18:45 ` Guido Günther
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2015-04-29 8:06 UTC (permalink / raw)
To: linux-wpan; +Cc: kernel, Alexander Aring, Guido Günther
This patch fix endian convertions for extended address and short address
handling when TP_printk is called.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Cc: Guido Günther <agx@sigxcpu.org>
---
net/ieee802154/trace.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/net/ieee802154/trace.h b/net/ieee802154/trace.h
index 8ed9f97..5ac25eb 100644
--- a/net/ieee802154/trace.h
+++ b/net/ieee802154/trace.h
@@ -58,7 +58,7 @@ TRACE_EVENT(802154_rdev_add_virtual_intf,
),
TP_printk(WPAN_PHY_PR_FMT ", virtual intf name: %s, type: %d, ea %llx",
WPAN_PHY_PR_ARG, __get_str(vir_intf_name), __entry->type,
- __entry->extended_addr)
+ __le64_to_cpu(__entry->extended_addr))
);
TRACE_EVENT(802154_rdev_del_virtual_intf,
@@ -138,7 +138,8 @@ DEFINE_EVENT_PRINT(802154_le16_template, 802154_rdev_set_short_addr,
__le16 le16arg),
TP_ARGS(wpan_phy, wpan_dev, le16arg),
TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT ", sa: 0x%04x",
- WPAN_PHY_PR_ARG, WPAN_DEV_PR_ARG, __entry->le16arg)
+ WPAN_PHY_PR_ARG, WPAN_DEV_PR_ARG,
+ __le16_to_cpu(__entry->le16arg))
);
TRACE_EVENT(802154_rdev_set_backoff_exponent,
--
2.3.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH wpan-next] ieee802154: trace: fix endian convertion
2015-04-29 8:06 [PATCH wpan-next] ieee802154: trace: fix endian convertion Alexander Aring
@ 2015-04-29 18:45 ` Guido Günther
0 siblings, 0 replies; 2+ messages in thread
From: Guido Günther @ 2015-04-29 18:45 UTC (permalink / raw)
To: Alexander Aring; +Cc: linux-wpan, kernel
On Wed, Apr 29, 2015 at 10:06:21AM +0200, Alexander Aring wrote:
> This patch fix endian convertions for extended address and short address
> handling when TP_printk is called.
>
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> Cc: Guido Günther <agx@sigxcpu.org>
> ---
> net/ieee802154/trace.h | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/net/ieee802154/trace.h b/net/ieee802154/trace.h
> index 8ed9f97..5ac25eb 100644
> --- a/net/ieee802154/trace.h
> +++ b/net/ieee802154/trace.h
> @@ -58,7 +58,7 @@ TRACE_EVENT(802154_rdev_add_virtual_intf,
> ),
> TP_printk(WPAN_PHY_PR_FMT ", virtual intf name: %s, type: %d, ea %llx",
> WPAN_PHY_PR_ARG, __get_str(vir_intf_name), __entry->type,
> - __entry->extended_addr)
> + __le64_to_cpu(__entry->extended_addr))
> );
>
> TRACE_EVENT(802154_rdev_del_virtual_intf,
> @@ -138,7 +138,8 @@ DEFINE_EVENT_PRINT(802154_le16_template, 802154_rdev_set_short_addr,
> __le16 le16arg),
> TP_ARGS(wpan_phy, wpan_dev, le16arg),
> TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT ", sa: 0x%04x",
> - WPAN_PHY_PR_ARG, WPAN_DEV_PR_ARG, __entry->le16arg)
> + WPAN_PHY_PR_ARG, WPAN_DEV_PR_ARG,
> + __le16_to_cpu(__entry->le16arg))
> );
>
> TRACE_EVENT(802154_rdev_set_backoff_exponent,
Argh - missed that one. ACK.
Cheers,
-- Guido
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-29 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-29 8:06 [PATCH wpan-next] ieee802154: trace: fix endian convertion Alexander Aring
2015-04-29 18:45 ` Guido Günther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox