Bug 960961 - Part 3: add logs for setup/deactivate data call. r=vicamo
authorJessica Jong <jjong@mozilla.com>
Thu, 23 Jan 2014 16:44:49 +0800
changeset 164903 d32b34edd752da54fe352474408d056498322cbd
parent 164902 356ce1bba95354541adac271e1b6e064e97f55c1
child 164904 6f1463d52e4901eb34e9fbfb962c1d886838b524
push id38854
push userryanvm@gmail.com
push dateThu, 23 Jan 2014 20:58:13 +0000
treeherdermozilla-inbound@624d042739e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvicamo
bugs960961
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 960961 - Part 3: add logs for setup/deactivate data call. r=vicamo
dom/system/gonk/RadioInterfaceLayer.js
--- a/dom/system/gonk/RadioInterfaceLayer.js
+++ b/dom/system/gonk/RadioInterfaceLayer.js
@@ -3753,18 +3753,22 @@ RadioInterface.prototype = {
         if (DEBUG) {
           this.debug("callback handler for " + name + " threw an exception: " + e);
         }
       }
     }
   },
 
   setupDataCallByType: function(apntype) {
+    if (DEBUG) this.debug("setupDataCallByType: " + apntype);
     let apnSetting = this.apnSettings.byType[apntype];
     if (!apnSetting) {
+      if (DEBUG) {
+        this.debug("No apn setting for type: " + apntype);
+      }
       return;
     }
 
     let dataInfo = this.rilContext.data;
     if (dataInfo.state != RIL.GECKO_MOBILE_CONNECTION_STATE_REGISTERED ||
         dataInfo.type == RIL.GECKO_MOBILE_CONNECTION_STATE_UNKNOWN) {
       return;
     }
@@ -3793,18 +3797,22 @@ RadioInterface.prototype = {
 
       Services.obs.notifyObservers(apnSetting.iface,
                                    kNetworkInterfaceStateChangedTopic,
                                    null);
     }
   },
 
   deactivateDataCallByType: function(apntype) {
+    if (DEBUG) this.debug("deactivateDataCallByType: " + apntype);
     let apnSetting = this.apnSettings.byType[apntype];
     if (!apnSetting) {
+      if (DEBUG) {
+        this.debug("No apn setting for type: " + apntype);
+      }
       return;
     }
 
     apnSetting.iface.disconnect(apntype);
     // We just call disconnect() function, so this interface should be in
     // disconnecting state. If this interface is still in connected state, we
     // are sure that other data call types still need this connection of this
     // interface. In this circumstance, we have to directly update the