]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iwlwifi: use __get_str in tracing
authorJohannes Berg <johannes.berg@intel.com>
Fri, 22 Jun 2012 17:39:23 +0000 (19:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Jun 2012 07:38:34 +0000 (09:38 +0200)
__get_str() is identical to (char *)__get_dynamic_array()
that is in the code now, substitute __get_str to make the
code more readable.

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 ad2dba8fc45025b3e2de5853791b0996495871af..06ca505bb2cc68cb84168f55107e52324639ff4a 100644 (file)
@@ -189,7 +189,7 @@ DECLARE_EVENT_CLASS(iwlwifi_msg_event,
                                       MAX_MSG_LEN, vaf->fmt,
                                       *vaf->va) >= MAX_MSG_LEN);
        ),
-       TP_printk("%s", (char *)__get_dynamic_array(msg))
+       TP_printk("%s", __get_str(msg))
 );
 
 DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_err,