OSDN Git Service

Log interface name and uid when filtering a blocked network.
authorErik Kline <ek@google.com>
Mon, 19 Jan 2015 07:19:09 +0000 (16:19 +0900)
committerErik Kline <ek@google.com>
Wed, 21 Jan 2015 03:02:11 +0000 (12:02 +0900)
Bug: 18707263
Change-Id: Ide9a1670a97eae787b785933de0c80750c2b5601

services/core/java/com/android/server/ConnectivityService.java

index 61a7073..7ab8222 100644 (file)
@@ -907,7 +907,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
             // network is blocked; clone and override state
             info = new NetworkInfo(info);
             info.setDetailedState(DetailedState.BLOCKED, null, null);
-            if (DBG) log("returning Blocked NetworkInfo");
+            if (DBG) {
+                log("returning Blocked NetworkInfo for ifname=" +
+                        lp.getInterfaceName() + ", uid=" + uid);
+            }
         }
         if (info != null && mLockdownTracker != null) {
             info = mLockdownTracker.augmentNetworkInfo(info);