diff options
| author | Lingfeng Yang <lfy@google.com> | 2020-07-13 17:35:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-07-13 17:35:27 +0000 |
| commit | b8033d5b7dde8720dba9681b6ecb63e76578cfe6 (patch) | |
| tree | dc825777f66a5a21f0e290c79ae28b32776a47dc /system/OpenglSystemCommon | |
| parent | 69064122fa2f2686ac0f1ded3efecbff20a9f977 (diff) | |
| parent | eb6290190f5f7e4c3743644fc66bee8c622ef238 (diff) | |
| download | device_generic_goldfish-opengl-b8033d5b7dde8720dba9681b6ecb63e76578cfe6.tar.gz device_generic_goldfish-opengl-b8033d5b7dde8720dba9681b6ecb63e76578cfe6.tar.bz2 device_generic_goldfish-opengl-b8033d5b7dde8720dba9681b6ecb63e76578cfe6.zip | |
Merge "libOpenglSystemCommon: Fix -Wformat warnings"
Diffstat (limited to 'system/OpenglSystemCommon')
| -rw-r--r-- | system/OpenglSystemCommon/VirtioGpuStream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/OpenglSystemCommon/VirtioGpuStream.cpp b/system/OpenglSystemCommon/VirtioGpuStream.cpp index a0876dca..1b49244c 100644 --- a/system/OpenglSystemCommon/VirtioGpuStream.cpp +++ b/system/OpenglSystemCommon/VirtioGpuStream.cpp @@ -282,7 +282,7 @@ int VirtioGpuStream::writeFully(const void *buf, size_t len) if (m_flushPos + len > cmd->cmdSize) { ERR("%s: writeFully len %zu would overflow the command bounds, " - "cmd_pos=%zu, flush_pos=%zu, cmdsize=%zu, lethal error, exiting", + "cmd_pos=%zu, flush_pos=%zu, cmdsize=%" PRIu32 ", lethal error, exiting", __func__, len, m_cmdPos, m_flushPos, cmd->cmdSize); abort(); } @@ -344,7 +344,7 @@ const unsigned char *VirtioGpuStream::readFully(void *buf, size_t len) // Most likely a protocol implementation error if (m_cmdResp->cmdSize - sizeof(*m_cmdResp) < m_cmdRespPos + len) { - ERR("%s: failed, op %zu, len %zu, cmdSize %zu, pos %zu, lethal " + ERR("%s: failed, op %" PRIu32 ", len %zu, cmdSize %" PRIu32 ", pos %zu, lethal " "error, exiting.", __func__, m_cmdResp->op, len, m_cmdResp->cmdSize, m_cmdRespPos); abort(); @@ -380,7 +380,7 @@ int VirtioGpuStream::commitAll() // Should never happen if (pos + cmd->cmdSize > m_bufSize) { - ERR("%s: failed, pos %zu, cmdSize %zu, bufSize %zu, lethal " + ERR("%s: failed, pos %zu, cmdSize %" PRIu32 ", bufSize %zu, lethal " "error, exiting.", __func__, pos, cmd->cmdSize, m_bufSize); abort(); } |
