summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuxi <cruddev@gmail.com>2021-08-24 02:52:15 +0000
committeryuxi <cruddev@gmail.com>2021-08-24 02:52:20 +0000
commitc05af3b8d14b58b8c6edf975e18af5ea1f205884 (patch)
tree41d1c61d2ae37dc3782e206046ee78c0a1ce4a1b
parentf3af176ff16d9faf0e5198d55f0fa7c9c9daf372 (diff)
downloadnative-c05af3b8d14b58b8c6edf975e18af5ea1f205884.tar.gz
[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
-rw-r--r--libs/binder/Parcel.cpp4
1 files changed, 2 insertions, 2 deletions
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<ProcessState>& 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<IBinder*>(obj.cookie)->incStrong(who);
}
return;
@@ -137,7 +137,7 @@ static void release_object(const sp<ProcessState>& 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<IBinder*>(obj.cookie)->decStrong(who);
}
return;