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

Commit 8e84edaa authored by Alan Rosenthal's avatar Alan Rosenthal
Browse files

ComposerCommandBuffer.h: fix compiler warning

```
warning: format specifies type 'unsigned int' but the argument has type
'IComposerClient::Command' [-Wformat]
```

Change-Id: I9a585330ef1edd7675e6406318bd966b03c8a209
parent af54782a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include <string.h>

#include <android/hardware/graphics/composer/2.1/IComposer.h>
#include <android/hardware/graphics/composer/2.1/IComposerClient.h>
#include <fmq/MessageQueue.h>
#include <log/log.h>
#include <sync/sync.h>
@@ -649,7 +650,8 @@ class CommandReaderBase {
        *outLength = static_cast<uint16_t>(val & length_mask);

        if (mDataRead + *outLength > mDataSize) {
            ALOGE("command 0x%x has invalid command length %" PRIu16, *outCommand, *outLength);
            ALOGE("command %s has invalid command length %" PRIu16,
                  toString(*outCommand).c_str(), *outLength);
            // undo the read() above
            mDataRead--;
            return false;