summaryrefslogtreecommitdiff
path: root/server/RouteController.cpp
diff options
context:
space:
mode:
authorSreeram Ramachandran <sreeram@google.com>2014-07-01 15:49:20 -0700
committerSreeram Ramachandran <sreeram@google.com>2014-07-01 15:53:24 -0700
commitcf891383224e420d99996f7e63728a7cc902415e (patch)
tree116e033fa160c96c2bf1d350a0d1088408c335fc /server/RouteController.cpp
parent1201e84ebda52d8d82e5385644e9de0923e61aa3 (diff)
Don't use %zu for uid_t. It's always unsigned int, so %u is correct.
Change-Id: I5be1d479b524495037c2aedc8336c794d2698914
Diffstat (limited to 'server/RouteController.cpp')
-rw-r--r--server/RouteController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/RouteController.cpp b/server/RouteController.cpp
index 411447ef..69d2ec0d 100644
--- a/server/RouteController.cpp
+++ b/server/RouteController.cpp
@@ -181,7 +181,7 @@ WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t
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 @@ WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t
// 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);