]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
iwlwifi: format log prints for easier parsing
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 12 Jun 2008 01:47:02 +0000 (09:47 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 14 Jun 2008 16:18:07 +0000 (12:18 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-core.c

index 7d0a2576d8f9eb2702da52e6d18dc5d78752fb1c..21995ff0cc0fadd129801874623aefb035341bf0 100644 (file)
@@ -1169,12 +1169,14 @@ void iwl_print_event_log(struct iwl_priv *priv, u32 start_idx,
                ptr += sizeof(u32);
                time = iwl_read_targ_mem(priv, ptr);
                ptr += sizeof(u32);
-               if (mode == 0)
-                       IWL_ERROR("0x%08x\t%04u\n", time, ev); /* data, ev */
-               else {
+               if (mode == 0) {
+                       /* data, ev */
+                       IWL_ERROR("EVT_LOG:0x%08x:%04u\n", time, ev);
+               } else {
                        data = iwl_read_targ_mem(priv, ptr);
                        ptr += sizeof(u32);
-                       IWL_ERROR("%010u\t0x%08x\t%04u\n", time, data, ev);
+                       IWL_ERROR("EVT_LOGT:%010u:0x%08x:%04u\n",
+                                       time, data, ev);
                }
        }
 }