diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-06-11 21:47:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:07 -0400 |
commit | 77c5d08e6c18e5c749f125d7df70bc7d54cb4cd8 (patch) | |
tree | 8c04d0828d85fe6f2d475dbcadb836ccf948d616 | |
parent | 753f766108158c65ac62cddd26dddcb3f7d9cc3a (diff) |
iwlwifi: format log prints for easier parsing
This patch changes uCode log print to for easier parsing.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 7d0a2576d8f9..21995ff0cc0f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1169,12 +1169,14 @@ void iwl_print_event_log(struct iwl_priv *priv, u32 start_idx, | |||
1169 | ptr += sizeof(u32); | 1169 | ptr += sizeof(u32); |
1170 | time = iwl_read_targ_mem(priv, ptr); | 1170 | time = iwl_read_targ_mem(priv, ptr); |
1171 | ptr += sizeof(u32); | 1171 | ptr += sizeof(u32); |
1172 | if (mode == 0) | 1172 | if (mode == 0) { |
1173 | IWL_ERROR("0x%08x\t%04u\n", time, ev); /* data, ev */ | 1173 | /* data, ev */ |
1174 | else { | 1174 | IWL_ERROR("EVT_LOG:0x%08x:%04u\n", time, ev); |
1175 | } else { | ||
1175 | data = iwl_read_targ_mem(priv, ptr); | 1176 | data = iwl_read_targ_mem(priv, ptr); |
1176 | ptr += sizeof(u32); | 1177 | ptr += sizeof(u32); |
1177 | IWL_ERROR("%010u\t0x%08x\t%04u\n", time, data, ev); | 1178 | IWL_ERROR("EVT_LOGT:%010u:0x%08x:%04u\n", |
1179 | time, data, ev); | ||
1178 | } | 1180 | } |
1179 | } | 1181 | } |
1180 | } | 1182 | } |