OSDN Git Service

Fix an incorrect format specifier in printf
authorGeorge Burgess IV <gbiv@google.com>
Tue, 27 Jun 2017 00:03:20 +0000 (17:03 -0700)
committerGeorge Burgess IV <gbiv@google.com>
Tue, 27 Jun 2017 00:03:20 +0000 (17:03 -0700)
This was causing clang to complain:

buffer_hub_queue_producer.cpp:137:28: warning: format specifies type
'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned
long')

Bug: None
Test: mma. Warning is gone
Change-Id: I578c5a910727a578557777ca531ea17a3c90cee8

libs/vr/libbufferhubqueue/buffer_hub_queue_producer.cpp

index 0f75a5c..b44e55c 100644 (file)
@@ -133,7 +133,7 @@ status_t BufferHubQueueProducer::dequeueBuffer(
     int* out_slot, sp<Fence>* out_fence, uint32_t width, uint32_t height,
     PixelFormat format, uint64_t usage,
     FrameEventHistoryDelta* /* out_timestamps */) {
-  ALOGD_IF(TRACE, "dequeueBuffer: w=%u, h=%u, format=%d, usage=%llu", width,
+  ALOGD_IF(TRACE, "dequeueBuffer: w=%u, h=%u, format=%d, usage=%" PRIu64, width,
            height, format, usage);
 
   status_t ret;