Merge "libOpenglSystemCommon: Fix -Wformat warnings"
diff --git a/system/OpenglSystemCommon/VirtioGpuStream.cpp b/system/OpenglSystemCommon/VirtioGpuStream.cpp
index a0876dc..1b49244 100644
--- a/system/OpenglSystemCommon/VirtioGpuStream.cpp
+++ b/system/OpenglSystemCommon/VirtioGpuStream.cpp
@@ -282,7 +282,7 @@
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 @@
// 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 @@
// 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();
}