summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/device3/StatusTracker.cpp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-03-21 15:04:25 -0700
committerColin Cross <ccross@android.com>2014-03-21 15:04:25 -0700
commite5729fac81c8a984e984fefc90afc64135817d4f (patch)
tree526e94e71d66a2cf8faac48c16716bf3c757a2a6 /services/camera/libcameraservice/device3/StatusTracker.cpp
parent24e1bd71ac6850d9062b3bd803b37c0e92f69c7a (diff)
downloadframeworks_av-e5729fac81c8a984e984fefc90afc64135817d4f.zip
frameworks_av-e5729fac81c8a984e984fefc90afc64135817d4f.tar.gz
frameworks_av-e5729fac81c8a984e984fefc90afc64135817d4f.tar.bz2
libcameraservice: fix 64-bit print format warnings
Use PRId64 from inttypes.h to print nsecs_t (int64_t) Use %zu to print size_t Change-Id: I135620e0388db33587a8a7da393b48a45cb7275a
Diffstat (limited to 'services/camera/libcameraservice/device3/StatusTracker.cpp')
-rw-r--r--services/camera/libcameraservice/device3/StatusTracker.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/services/camera/libcameraservice/device3/StatusTracker.cpp b/services/camera/libcameraservice/device3/StatusTracker.cpp
index ab5419f..723b5c2 100644
--- a/services/camera/libcameraservice/device3/StatusTracker.cpp
+++ b/services/camera/libcameraservice/device3/StatusTracker.cpp
@@ -18,9 +18,6 @@
#define ATRACE_TAG ATRACE_TAG_CAMERA
//#define LOG_NDEBUG 0
-// This is needed for stdint.h to define INT64_MAX in C++
-#define __STDC_LIMIT_MACROS
-
#include <utils/Log.h>
#include <utils/Trace.h>
#include <ui/Fence.h>
@@ -52,7 +49,7 @@ int StatusTracker::addComponent() {
ALOGV("%s: Adding new component %d", __FUNCTION__, id);
err = mStates.add(id, IDLE);
- ALOGE_IF(err < 0, "%s: Can't add new component %d: %s (%d)",
+ ALOGE_IF(err < 0, "%s: Can't add new component %d: %s (%zd)",
__FUNCTION__, id, strerror(-err), err);
}