diff --git a/0001-adaptive-Fix-64bit-printing-on-non-64bit-machines.patch b/0001-adaptive-Fix-64bit-printing-on-non-64bit-machines.patch new file mode 100644 index 0000000..bc36106 --- /dev/null +++ b/0001-adaptive-Fix-64bit-printing-on-non-64bit-machines.patch @@ -0,0 +1,25 @@ +From 0710804c2c2747839231142c6be95485ed1707b7 Mon Sep 17 00:00:00 2001 +From: Benjamin Berg +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 + diff --git a/thermald.spec b/thermald.spec index 9c7d7e2..4893abc 100644 --- a/thermald.spec +++ b/thermald.spec @@ -35,6 +35,8 @@ Requires: dbus%{?_isa} Requires(pre): glibc-common Requires(pre): shadow-utils +Patch0: 0001-adaptive-Fix-64bit-printing-on-non-64bit-machines.patch + %{?systemd_requires} %description @@ -245,6 +247,7 @@ exit 0 %changelog * Tue Aug 25 2020 Benjamin Berg - 2.3-1 - New upstream release 2.3 (rhbz#1866784) +- Add patch to fix printf on non-64 bit * Wed Jul 29 2020 Fedora Release Engineering - 2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild