diff options
| author | 2024-11-14 18:35:35 +0000 | |
|---|---|---|
| committer | 2024-11-14 18:42:25 +0000 | |
| commit | eb09f976e48d196db79d96aa48f15b6ff84fc15c (patch) | |
| tree | 518252ea25b9926d49780ca77a0a7e6d24e708fc | |
| parent | d322e4e79b63d6a456ea9f6aa5921b9637194596 (diff) | |
Print NanoappIDs as hex
This improves debug readability.
Flag: EXEMPT log only update
Bug: 378588134
Change-Id: I9e2ab999410d37049ec01611a5c641d48c66c375
Test: presubmits
| -rw-r--r-- | services/core/java/com/android/server/location/contexthub/ContextHubClientManager.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/location/contexthub/ContextHubClientManager.java b/services/core/java/com/android/server/location/contexthub/ContextHubClientManager.java index 0fdd0ae641df..5248a051404d 100644 --- a/services/core/java/com/android/server/location/contexthub/ContextHubClientManager.java +++ b/services/core/java/com/android/server/location/contexthub/ContextHubClientManager.java @@ -237,15 +237,16 @@ import java.util.function.Consumer; if (message.isBroadcastMessage()) { if (message.isReliable()) { - Log.e(TAG, "Received reliable broadcast message from " + message.getNanoAppId()); + Log.e(TAG, "Received reliable broadcast message from 0x" + + Long.toHexString(message.getNanoAppId())); return ErrorCode.PERMANENT_ERROR; } // Broadcast messages shouldn't be sent with any permissions tagged per CHRE API // requirements. if (!messagePermissions.isEmpty()) { - Log.e(TAG, "Received broadcast message with permissions from " - + message.getNanoAppId()); + Log.e(TAG, "Received broadcast message with permissions from 0x" + + Long.toHexString(message.getNanoAppId())); return ErrorCode.PERMANENT_ERROR; } |