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

Commit b2cbdbfd authored by Dave McCloskey's avatar Dave McCloskey Committed by Automerger Merge Worker
Browse files

Merge "Fix typo and add length to log / exception Bug: 311761692 Test: atest...

Merge "Fix typo and add length to log / exception Bug: 311761692 Test: atest BluetoothInstrumentationTests" into main am: 450165a3

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2837077



Change-Id: I9dea6c26ee8c575440fa13f6fb36db46d8c828bc
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6a8b9808 450165a3
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -229,9 +229,15 @@ class AdvertiseHelper {

    static void check_length(int type, int length) {
        if (length > 255) {
            Log.w(TAG, "Length of data with type " + Integer.toString(type, 16)
                    + " is grater than 255");
            throw new IllegalArgumentException("Length of data is grater than 255");
            Log.w(
                    TAG,
                    "Length ("
                            + length
                            + ") of data with type "
                            + Integer.toString(type, 16)
                            + " is greater than 255");
            throw new IllegalArgumentException("Length of data is greater than 255");
        }
    }
}