diff options
author | Colin Cross <ccross@android.com> | 2014-03-21 15:04:25 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-03-21 15:04:25 -0700 |
commit | e5729fac81c8a984e984fefc90afc64135817d4f (patch) | |
tree | 526e94e71d66a2cf8faac48c16716bf3c757a2a6 /services/camera/libcameraservice/device3/StatusTracker.cpp | |
parent | 24e1bd71ac6850d9062b3bd803b37c0e92f69c7a (diff) | |
download | frameworks_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.cpp | 5 |
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); } |