iwlwifi: use __get_str in tracing
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Feb 2013 15:29:37 +0000 (16:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:47:27 +0000 (16:47 +0100)
Instead of using (char *)__get_dynamic_array use
__get_str. The latter is actually a macro that
expands to the former in the code, but trace-cmd
in userspace can parse __get_str only.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-devtrace.h

index 81aa91fab5aafcc1dc7fa597c85878d01ab83685..4491c1c72cc7d6e00ade51930342b16233172690 100644 (file)
@@ -298,7 +298,7 @@ TRACE_EVENT(iwlwifi_dbg,
                                       MAX_MSG_LEN, vaf->fmt,
                                       *vaf->va) >= MAX_MSG_LEN);
        ),
-       TP_printk("%s", (char *)__get_dynamic_array(msg))
+       TP_printk("%s", __get_str(msg))
 );
 
 #undef TRACE_SYSTEM