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

Commit 7d409691 authored by Scott Fan's avatar Scott Fan
Browse files

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: default avatarScott Fan <fancp2007@gmail.com>
parent d74a9ee8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",