Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb09f976 authored by Chris Sabotta's avatar Chris Sabotta
Browse files

Print NanoappIDs as hex

This improves debug readability.

Flag: EXEMPT log only update
Bug: 378588134
Change-Id: I9e2ab999410d37049ec01611a5c641d48c66c375
Test: presubmits
parent d322e4e7
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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;
            }