Bug 1191918 - Remove printf debugging r=me, a=sylvestre
authorJames Willcox <snorp@snorp.net>
Tue, 29 Sep 2015 16:47:32 -0500
changeset 296315 5cad2e3fe508a936e92f6e62b1fbdfdbe492f5a2
parent 296314 a9e196124b6c9d222a39ea8cb489e191e1f4aeec
child 296316 8465fe5c959804a8da7116221e86ba0812249a75
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, sylvestre
bugs1191918
milestone43.0a2
Bug 1191918 - Remove printf debugging r=me, a=sylvestre
dom/battery/BatteryManager.cpp
--- a/dom/battery/BatteryManager.cpp
+++ b/dom/battery/BatteryManager.cpp
@@ -137,20 +137,17 @@ BatteryManager::UpdateFromBatteryInfo(co
   uint16_t status = nsIPrincipal::APP_STATUS_NOT_INSTALLED;
   if (doc) {
     doc->NodePrincipal()->GetAppStatus(&status);
   }
 
   if (!nsContentUtils::IsChromeDoc(doc) &&
       status != nsIPrincipal::APP_STATUS_CERTIFIED)
   {
-    mLevel = 0.292f;
-    printf_stderr("SNORP: battery level before rounding: %lf\n", mLevel);
     mLevel = lround(mLevel * 10.0) / 10.0;
-    printf_stderr("SNORP: battery level after rounding: %lf\n", mLevel);
   }
 
   mCharging = aBatteryInfo.charging();
   mRemainingTime = aBatteryInfo.remainingTime();
 
   // Add some guards to make sure the values are coherent.
   if (mLevel == 1.0 && mCharging == true &&
       mRemainingTime != kDefaultRemainingTime) {