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

Commit b82bdf92 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 am: b2cbdbfd am: 6bf8d6c8

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



Change-Id: I555e65015ba6dc3facb633fba5fc579fd2b78429
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 71c92e41 6bf8d6c8
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");
        }
    }
}