diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-06-18 16:30:26 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-06-19 13:03:56 -0700 |
commit | 884989c67081190ff864419328e9e81506db67ca (patch) | |
tree | a46458be5913073f6055e72765607736c3389d8b /cmds/screenrecord/Overlay.cpp | |
parent | ab5cdbaf65ca509681d2726aacdf3ac8bfb6b3fa (diff) | |
download | frameworks_av-884989c67081190ff864419328e9e81506db67ca.zip frameworks_av-884989c67081190ff864419328e9e81506db67ca.tar.gz frameworks_av-884989c67081190ff864419328e9e81506db67ca.tar.bz2 |
screenrecord: 64-bit compile warnings
Change-Id: I708e48e24719b2c4bb023069164aafd4c2ad639b
Diffstat (limited to 'cmds/screenrecord/Overlay.cpp')
-rw-r--r-- | cmds/screenrecord/Overlay.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmds/screenrecord/Overlay.cpp b/cmds/screenrecord/Overlay.cpp index c2a8f1b..af84069 100644 --- a/cmds/screenrecord/Overlay.cpp +++ b/cmds/screenrecord/Overlay.cpp @@ -14,6 +14,10 @@ * limitations under the License. */ +#include <assert.h> +#include <inttypes.h> +#include <stdlib.h> + #define LOG_TAG "ScreenRecord" //#define LOG_NDEBUG 0 #include <utils/Log.h> @@ -27,9 +31,6 @@ #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> -#include <stdlib.h> -#include <assert.h> - #include "screenrecord.h" #include "Overlay.h" #include "TextRenderer.h" @@ -235,7 +236,7 @@ void Overlay::processFrame_l() { char textBuf[64]; getTimeString_l(monotonicNsec, textBuf, sizeof(textBuf)); - String8 timeStr(String8::format("%s f=%lld (%zd)", + String8 timeStr(String8::format("%s f=%" PRId64 " (%zd)", textBuf, frameNumber, mTotalDroppedFrames)); mTextRenderer.drawString(mTexProgram, Program::kIdentity, 0, 0, timeStr); |