thermald/0001-adaptive-Fix-64bit-printing-on-non-64bit-machines.patch

26 lines
993 B
Diff
Raw Normal View History

2020-08-25 13:13:04 +00:00
From 0710804c2c2747839231142c6be95485ed1707b7 Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Tue, 25 Aug 2020 15:01:56 +0200
Subject: [PATCH] adaptive: Fix 64bit printing on non-64bit machines
---
src/thd_engine_adaptive.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/thd_engine_adaptive.cpp b/src/thd_engine_adaptive.cpp
index acae7d4..8d33153 100644
--- a/src/thd_engine_adaptive.cpp
+++ b/src/thd_engine_adaptive.cpp
@@ -183,7 +183,7 @@ void cthd_engine_adaptive::dump_apat()
thd_log_info("..apat dump begin.. \n");
for (unsigned int i = 0; i < targets.size(); ++i) {
thd_log_info(
- "target_id:%lu name:%s participant:%s domain:%d code:%s argument:%s\n",
+ "target_id:%" PRIu64 " name:%s participant:%s domain:%d code:%s argument:%s\n",
targets[i].target_id, targets[i].name.c_str(),
targets[i].participant.c_str(), (int)targets[i].domain,
targets[i].code.c_str(), targets[i].argument.c_str());
--
2.26.2