summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-09-27 13:56:24 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-09-27 13:56:24 +0300
commitf093a5529cc925e18104e62764e209358c7a4ec2 (patch)
tree7e591b07328abc616be7e4de7c8514420803a1f7 /utils
parent09e7a23d50cce61f16a1cbd39079c1075ca149f8 (diff)
kmsprint: fix prints
Diffstat (limited to 'utils')
-rw-r--r--utils/kmsprint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp
index 7f02b41..23aefb2 100644
--- a/utils/kmsprint.cpp
+++ b/utils/kmsprint.cpp
@@ -141,7 +141,7 @@ static string format_property(const Property* prop, uint64_t val)
vall.push_back(sformat("%s=0x%x", kvp.second.c_str(), 1 << kvp.first));
}
- ret += sformat("0x%llx (%s) [%s]", val, join(v, "|").c_str(), join(vall, "|").c_str());
+ ret += sformat("0x%" PRIx64 " (%s) [%s]", val, join(v, "|").c_str(), join(vall, "|").c_str());
break;
}
@@ -170,10 +170,10 @@ static string format_property(const Property* prop, uint64_t val)
for (auto kvp : prop->get_enums()) {
if (val == kvp.first)
cur = kvp.second;
- vall.push_back(sformat("%s=%llu", kvp.second.c_str(), kvp.first));
+ vall.push_back(sformat("%s=%" PRIu64, kvp.second.c_str(), kvp.first));
}
- ret += sformat("%llu (%s) [%s]", val, cur.c_str(), join(vall, "|").c_str());
+ ret += sformat("%" PRIu64 " (%s) [%s]", val, cur.c_str(), join(vall, "|").c_str());
break;
}