Fix formatting error in WifiStateChangeService

It's %d, not %i.
This commit is contained in:
Daniel Martí 2015-09-10 18:29:38 -07:00
parent 35c5f063f1
commit cc8b9bb41d

View File

@ -206,7 +206,7 @@ public class WifiStateChangeService extends Service {
// the following methods were not added until android-9/Gingerbread
for (InterfaceAddress address : netIf.getInterfaceAddresses()) {
if (inetAddress.equals(address.getAddress()) && !TextUtils.isEmpty(FDroidApp.ipAddressString)) {
String cidr = String.format("%s/%i", FDroidApp.ipAddressString, address.getNetworkPrefixLength());
String cidr = String.format("%s/%d", FDroidApp.ipAddressString, address.getNetworkPrefixLength());
FDroidApp.subnetInfo = (new SubnetUtils(cidr)).getInfo();
break;
}