EM/Battery: Make battery prints use dev_dbg
authorOmair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Tue, 13 Mar 2012 06:14:15 +0000 (11:44 +0530)
committerbuildbot <buildbot@intel.com>
Mon, 2 Apr 2012 13:57:31 +0000 (06:57 -0700)
BZ: 16334

Some battery prints come periodically in the dmesg logs and fill up the logs.

Using dev_dbg instead of dev_info will make the prints dynamically configurable
using sysfs, so that they are turned on only when required.

Change-Id: I9882570344ffbd1c9d08ea87484a87b712046035
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/38786
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/power/intel_mdf_battery.c

index ae49e08..d4af63e 100644 (file)
@@ -705,7 +705,7 @@ static void dump_registers(int dump_mask)
                                chk_reg_addr = reg_addr_boot[i];
                                goto ipcread_err;
                        }
-                       dev_info(msic_dev, "%s val: %x\n", reg_str_boot[i],
+                       dev_dbg(msic_dev, "%s val: %x\n", reg_str_boot[i],
                                                                reg_val);
                }
        }
@@ -717,7 +717,7 @@ static void dump_registers(int dump_mask)
                                chk_reg_addr = reg_addr_int[i];
                                goto ipcread_err;
                        }
-                       dev_info(msic_dev, "%s val: %x\n", reg_str_int[i],
+                       dev_dbg(msic_dev, "%s val: %x\n", reg_str_int[i],
                                                                reg_val);
                }
        }
@@ -729,7 +729,7 @@ static void dump_registers(int dump_mask)
                                chk_reg_addr = reg_addr_evt[i];
                                goto ipcread_err;
                        }
-                       dev_info(msic_dev, "%s val: %x\n", reg_str_evt[i],
+                       dev_dbg(msic_dev, "%s val: %x\n", reg_str_evt[i],
                                                                reg_val);
                }
        }