From 048b55eeb21d2171c203143da7e329dc85b8c0a0 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 27 Oct 2015 15:07:50 -0700 Subject: Fix trivial print format error. * Use %zu for size_t values for both 32 and 64-bit modes. Change-Id: Iee7227211272a45aaed544c7b14130e31c91b349 --- tests/aidl_test_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/aidl_test_service.cpp') diff --git a/tests/aidl_test_service.cpp b/tests/aidl_test_service.cpp index 17c47ee..621694e 100644 --- a/tests/aidl_test_service.cpp +++ b/tests/aidl_test_service.cpp @@ -100,7 +100,7 @@ class NativeService : public BnTestService { } void LogRepeatedStringToken(const String16& token) { - ALOGI("Repeating '%s' of length=%u", android::String8(token).string(), + ALOGI("Repeating '%s' of length=%zu", android::String8(token).string(), token.size()); } -- cgit v1.2.3