summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
diff options
context:
space:
mode:
authorScott Fan <fancp2007@gmail.com>2013-04-28 10:13:54 +0800
committerScott Fan <fancp2007@gmail.com>2013-06-27 07:06:15 +0000
commit7d409691ed61f96bac6672b59f368cd3cc8ea2d8 (patch)
tree03efbb6dff1fbad998859225e3ae49901211d417 /media/libmediaplayerservice
parentd74a9ee83fd6e033fd2260ca3777390d7e5f817a (diff)
downloadframeworks_av-7d409691ed61f96bac6672b59f368cd3cc8ea2d8.zip
frameworks_av-7d409691ed61f96bac6672b59f368cd3cc8ea2d8.tar.gz
frameworks_av-7d409691ed61f96bac6672b59f368cd3cc8ea2d8.tar.bz2
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>
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index 25aa611..193b02c 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",