--- /dev/null
+--- thermal_daemon-2.2/src/main.cpp.orig 2020-06-06 01:02:24.000000000 +0200
++++ thermal_daemon-2.2/src/main.cpp 2020-06-29 19:26:49.136677166 +0200
+@@ -121,9 +121,9 @@
+ seconds = time(NULL);
+
+ if (thd_daemonize)
+- syslog(syslog_priority, "[%ld]%s%s", seconds, prefix, message);
++ syslog(syslog_priority, "[%lld]%s%s", (long long) seconds, prefix, message);
+ else
+- g_print("[%ld]%s%s", seconds, prefix, message);
++ g_print("[%lld]%s%s", (long long) seconds, prefix, message);
+
+ }
+
Group: Base
Source0: https://github.com/01org/thermal_daemon/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 4e86f9c2fedcdfc10bb2654edcc96414
+Patch0: print-time_t.patch
URL: https://github.com/01org/thermal_daemon
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.11
%prep
%setup -q -n thermal_daemon-%{version}
+%patch0 -p1
%build
install -d build-aux