From c05af3b8d14b58b8c6edf975e18af5ea1f205884 Mon Sep 17 00:00:00 2001 From: yuxi Date: Tue, 24 Aug 2021 02:52:15 +0000 Subject: [Bugfix] Fix compling error when enable LOG_REFS in Parcel.cpp When we try to enable LOG_REFS in Parcel.cpp, we encounter a compling problem, so we try to fix it. Change-Id: I88310752b84dd7b07751296743615d92c4436ebb Test: manual --- libs/binder/Parcel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/binder/Parcel.cpp') diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 956524ac74..b5454849eb 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -104,7 +104,7 @@ static void acquire_object(const sp& proc, switch (obj.hdr.type) { case BINDER_TYPE_BINDER: if (obj.binder) { - LOG_REFS("Parcel %p acquiring reference on local %p", who, obj.cookie); + LOG_REFS("Parcel %p acquiring reference on local %llu", who, obj.cookie); reinterpret_cast(obj.cookie)->incStrong(who); } return; @@ -137,7 +137,7 @@ static void release_object(const sp& proc, switch (obj.hdr.type) { case BINDER_TYPE_BINDER: if (obj.binder) { - LOG_REFS("Parcel %p releasing reference on local %p", who, obj.cookie); + LOG_REFS("Parcel %p releasing reference on local %llu", who, obj.cookie); reinterpret_cast(obj.cookie)->decStrong(who); } return; -- cgit v1.2.3-59-g8ed1b