diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-07 09:47:14 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-02-07 09:52:20 -0800 |
commit | cac3daa6332bf6d1f7d26adc4a9915f3d7992dd9 (patch) | |
tree | 806b4634036e26630acbed0f0dac907bec5ca7b5 /media/libmedia/AudioRecord.cpp | |
parent | 010c4c8ec50eb04ece15f792c508a3b869749310 (diff) | |
download | frameworks_av-cac3daa6332bf6d1f7d26adc4a9915f3d7992dd9.zip frameworks_av-cac3daa6332bf6d1f7d26adc4a9915f3d7992dd9.tar.gz frameworks_av-cac3daa6332bf6d1f7d26adc4a9915f3d7992dd9.tar.bz2 |
Use printf format %#x for audio_format_t in logs
Change-Id: I1c611d1037685d52ccc84efe0fccd6413ec938e9
Diffstat (limited to 'media/libmedia/AudioRecord.cpp')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index a9ba154..541cb51 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -52,7 +52,7 @@ status_t AudioRecord::getMinFrameCount( } if (size == 0) { - ALOGE("Unsupported configuration: sampleRate %u, format %d, channelMask %#x", + ALOGE("Unsupported configuration: sampleRate %u, format %#x, channelMask %#x", sampleRate, format, channelMask); return BAD_VALUE; } @@ -191,12 +191,12 @@ status_t AudioRecord::set( // validate parameters if (!audio_is_valid_format(format)) { - ALOGE("Invalid format %d", format); + ALOGE("Invalid format %#x", format); return BAD_VALUE; } // Temporary restriction: AudioFlinger currently supports 16-bit PCM only if (format != AUDIO_FORMAT_PCM_16_BIT) { - ALOGE("Format %d is not supported", format); + ALOGE("Format %#x is not supported", format); return BAD_VALUE; } mFormat = format; |