summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Moore <devinmoore@google.com>2023-12-15 19:04:31 +0000
committerDevin Moore <devinmoore@google.com>2023-12-15 19:04:31 +0000
commit93c4949913f43a56ec2be4c9f170f628a1aec706 (patch)
treee25976522552942e07e2f78f1f3874672ec89068
parent034e8fe57c33c5f7f6d5b228e96641f2733b06ae (diff)
downloadlibhwbinder-93c4949913f43a56ec2be4c9f170f628a1aec706.tar.gz
Move the BR_TRANSACTION_SEC_CTX debug string
It will end up in the same index as BR_TRANSACTION because they are both defined as reply 2 with the only difference being the size of the structs which is stored in the lower 14 bits of the top 16 bits of the 32-bit structure. When we index into this array, we use only the bottom 8 bits with _IOC_NRBITS. See the definition in bionic/libc/kernel/uapi/linux/android/binder.h Test: m Bug: none Change-Id: Ia3b535aa5609c6dcf318b3561af65f0c94c41348
-rw-r--r--IPCThreadState.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/IPCThreadState.cpp b/IPCThreadState.cpp
index 8c7cb57..6ae379f 100644
--- a/IPCThreadState.cpp
+++ b/IPCThreadState.cpp
@@ -72,7 +72,7 @@ namespace hardware {
static const char *kReturnStrings[] = {
"BR_ERROR",
"BR_OK",
- "BR_TRANSACTION",
+ "BR_TRANSACTION/BR_TRANSACTION_SEC_CTX",
"BR_REPLY",
"BR_ACQUIRE_RESULT",
"BR_DEAD_REPLY",
@@ -91,7 +91,6 @@ static const char *kReturnStrings[] = {
"BR_FROZEN_REPLY",
"BR_ONEWAY_SPAM_SUSPECT",
"BR_TRANSACTION_PENDING_FROZEN",
- "BR_TRANSACTION_SEC_CTX",
};
static const char *kCommandStrings[] = {