Tweak Id3Decoder error message to print hex instead of int

Before: "Unexpected first three bytes of ID3 tag header: 6845556"
After: "Unexpected first three bytes of ID3 tag header: 0x687474"
PiperOrigin-RevId: 271949486
This commit is contained in:
ibaker 2019-09-30 11:46:44 +01:00 committed by Oliver Woodman
parent 36d3fef2b5
commit bab12af597

View file

@ -163,7 +163,7 @@ public final class Id3Decoder implements MetadataDecoder {
int id = data.readUnsignedInt24();
if (id != ID3_TAG) {
Log.w(TAG, "Unexpected first three bytes of ID3 tag header: " + id);
Log.w(TAG, "Unexpected first three bytes of ID3 tag header: 0x" + String.format("%06X", id));
return null;
}