Don't use %zu for uid_t. It's always unsigned int, so %u is correct.
Change-Id: I5be1d479b524495037c2aedc8336c794d2698914
diff --git a/server/RouteController.cpp b/server/RouteController.cpp
index 411447e..69d2ec0 100644
--- a/server/RouteController.cpp
+++ b/server/RouteController.cpp
@@ -181,7 +181,7 @@
if (interface) {
interfaceLength = strlcpy(oifname, interface, IFNAMSIZ) + 1;
if (interfaceLength > IFNAMSIZ) {
- ALOGE("interface name too long (%zu > %zu)", interfaceLength, IFNAMSIZ);
+ ALOGE("interface name too long (%zu > %u)", interfaceLength, IFNAMSIZ);
return -ENAMETOOLONG;
}
paddingLength = RTA_SPACE(interfaceLength) - RTA_LENGTH(interfaceLength);
@@ -189,7 +189,7 @@
// Either both start and end UID must be specified, or neither.
if ((uidStart == INVALID_UID) != (uidEnd == INVALID_UID)) {
- ALOGE("incompatible start and end UIDs (%zu vs %zu)", uidStart, uidEnd);
+ ALOGE("incompatible start and end UIDs (%u vs %u)", uidStart, uidEnd);
return -EUSERS;
}
bool isUidRule = (uidStart != INVALID_UID);