diff options
author | Scott Fan <fancp2007@gmail.com> | 2013-04-28 10:13:54 +0800 |
---|---|---|
committer | Scott Fan <fancp2007@gmail.com> | 2013-06-27 07:06:15 +0000 |
commit | 7d409691ed61f96bac6672b59f368cd3cc8ea2d8 (patch) | |
tree | 03efbb6dff1fbad998859225e3ae49901211d417 | |
parent | d74a9ee83fd6e033fd2260ca3777390d7e5f817a (diff) |
Fix compilation warning: incorrect format specifier for type 'ssize_t'.
warning: format '%ld' expects argument of type 'long int',
but argument 7 has type 'ssize_t {aka int}' [-Wformat]
Change-Id: I823835a26320a3abb82f8dff9fbe82e5132e7556
Signed-off-by: Scott Fan <fancp2007@gmail.com>
-rw-r--r-- | media/libmediaplayerservice/MediaPlayerService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp index 25aa6117..193b02ce 100644 --- a/media/libmediaplayerservice/MediaPlayerService.cpp +++ b/media/libmediaplayerservice/MediaPlayerService.cpp @@ -307,7 +307,7 @@ status_t MediaPlayerService::AudioCache::dump(int fd, const Vector<String16>& ar mHeap->getBase(), mHeap->getSize(), mHeap->getFlags(), mHeap->getDevice()); result.append(buffer); } - snprintf(buffer, 255, " msec per frame(%f), channel count(%d), format(%d), frame count(%ld)\n", + snprintf(buffer, 255, " msec per frame(%f), channel count(%d), format(%d), frame count(%zd)\n", mMsecsPerFrame, mChannelCount, mFormat, mFrameCount); result.append(buffer); snprintf(buffer, 255, " sample rate(%d), size(%d), error(%d), command complete(%s)\n", |