ac3a84
From bca4fe362cb2198f964d33c5a0fb27298d8e9ad8 Mon Sep 17 00:00:00 2001
ac3a84
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
ac3a84
Date: Mon, 21 Nov 2022 20:03:08 +0100
ac3a84
Subject: [PATCH] manager: fix format strings for trigger metadata
ac3a84
ac3a84
Fixup for c8bc7519c888a99134f88f8c82353246d3c0cc5d.
ac3a84
ac3a84
(cherry picked from commit 6457ce15be84cf3c304d1ba47b89bacc2f60bf6e)
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 src/core/timer.c | 8 ++++----
ac3a84
 1 file changed, 4 insertions(+), 4 deletions(-)
ac3a84
ac3a84
diff --git a/src/core/timer.c b/src/core/timer.c
ac3a84
index 8bd430b931..b6810c8599 100644
ac3a84
--- a/src/core/timer.c
ac3a84
+++ b/src/core/timer.c
ac3a84
@@ -948,11 +948,11 @@ static int activation_details_timer_append_env(ActivationDetails *details, char
ac3a84
         if (!dual_timestamp_is_set(&t->last_trigger))
ac3a84
                 return 0;
ac3a84
 
ac3a84
-        r = strv_extendf(strv, "TRIGGER_TIMER_REALTIME_USEC=%" USEC_FMT, t->last_trigger.realtime);
ac3a84
+        r = strv_extendf(strv, "TRIGGER_TIMER_REALTIME_USEC=" USEC_FMT, t->last_trigger.realtime);
ac3a84
         if (r < 0)
ac3a84
                 return r;
ac3a84
 
ac3a84
-        r = strv_extendf(strv, "TRIGGER_TIMER_MONOTONIC_USEC=%" USEC_FMT, t->last_trigger.monotonic);
ac3a84
+        r = strv_extendf(strv, "TRIGGER_TIMER_MONOTONIC_USEC=" USEC_FMT, t->last_trigger.monotonic);
ac3a84
         if (r < 0)
ac3a84
                 return r;
ac3a84
 
ac3a84
@@ -974,7 +974,7 @@ static int activation_details_timer_append_pair(ActivationDetails *details, char
ac3a84
         if (r < 0)
ac3a84
                 return r;
ac3a84
 
ac3a84
-        r = strv_extendf(strv, "%" USEC_FMT, t->last_trigger.realtime);
ac3a84
+        r = strv_extendf(strv, USEC_FMT, t->last_trigger.realtime);
ac3a84
         if (r < 0)
ac3a84
                 return r;
ac3a84
 
ac3a84
@@ -982,7 +982,7 @@ static int activation_details_timer_append_pair(ActivationDetails *details, char
ac3a84
         if (r < 0)
ac3a84
                 return r;
ac3a84
 
ac3a84
-        r = strv_extendf(strv, "%" USEC_FMT, t->last_trigger.monotonic);
ac3a84
+        r = strv_extendf(strv, USEC_FMT, t->last_trigger.monotonic);
ac3a84
         if (r < 0)
ac3a84
                 return r;
ac3a84