summaryrefslogtreecommitdiffstats
path: root/fingerprintd
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2015-06-05 12:25:17 -0700
committerJim Miller <jaggies@google.com>2015-06-05 12:25:17 -0700
commit72ffc3c02a5546ab93ffcbb2a94193be651c3629 (patch)
treecb1177a8cb8dbc493863334f8f7c34c6c72e9716 /fingerprintd
parent5a9233444b519cb866cc657a4dce27c45f089a97 (diff)
downloadsystem_core-72ffc3c02a5546ab93ffcbb2a94193be651c3629.tar.gz
system_core-72ffc3c02a5546ab93ffcbb2a94193be651c3629.tar.bz2
system_core-72ffc3c02a5546ab93ffcbb2a94193be651c3629.zip
Fix error on systems where ssize_t isn't 64-bits
Fixes bug 21491366 Change-Id: If34ab89fdb410350fa5773b5495a27493a6d1211
Diffstat (limited to 'fingerprintd')
-rw-r--r--fingerprintd/FingerprintDaemonProxy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fingerprintd/FingerprintDaemonProxy.cpp b/fingerprintd/FingerprintDaemonProxy.cpp
index 4f355200b..a8a4024ea 100644
--- a/fingerprintd/FingerprintDaemonProxy.cpp
+++ b/fingerprintd/FingerprintDaemonProxy.cpp
@@ -123,7 +123,7 @@ int32_t FingerprintDaemonProxy::enroll(const uint8_t* token, ssize_t tokenSize,
int32_t timeout) {
ALOG(LOG_VERBOSE, LOG_TAG, "enroll(gid=%d, timeout=%d)\n", groupId, timeout);
if (tokenSize != sizeof(hw_auth_token_t) ) {
- ALOG(LOG_VERBOSE, LOG_TAG, "enroll() : invalid token size %" PRId64 "\n", tokenSize);
+ ALOG(LOG_VERBOSE, LOG_TAG, "enroll() : invalid token size %zu\n", tokenSize);
return -1;
}
const hw_auth_token_t* authToken = reinterpret_cast<const hw_auth_token_t*>(token);
@@ -171,7 +171,7 @@ int32_t FingerprintDaemonProxy::setActiveGroup(int32_t groupId, const uint8_t* p
char path_name[PATH_MAX];
memcpy(path_name, path, pathlen);
path_name[pathlen] = '\0';
- ALOG(LOG_VERBOSE, LOG_TAG, "setActiveGroup(%d, %s, %" PRId64 ")", groupId, path_name, pathlen);
+ ALOG(LOG_VERBOSE, LOG_TAG, "setActiveGroup(%d, %s, %zu)", groupId, path_name, pathlen);
return mDevice->set_active_group(mDevice, groupId, path_name);
return -1;
}