summaryrefslogtreecommitdiffstats
path: root/src/timesync/wait-sync.c
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-08-30 09:28:56 +0200
committerJan Janssen <medhefgo@web.de>2022-08-30 12:03:33 +0200
commit5570a09702b2a4c77772617d5fce97b6b70ec03f (patch)
tree6894fe53f7ed84cce0f20d1190648e0797ca8023 /src/timesync/wait-sync.c
parenttree-wide: Fix a some remaining format warnings by casting (diff)
downloadsystemd-5570a09702b2a4c77772617d5fce97b6b70ec03f.tar.xz
systemd-5570a09702b2a4c77772617d5fce97b6b70ec03f.zip
tree-wide: Fix format specifier warnings for %x
Unfortunately, hex output can only be produced with unsigned types. Some cases can be fixed by producing the correct type, but a few simply have to be cast. At least casting makes it explicit.
Diffstat (limited to 'src/timesync/wait-sync.c')
-rw-r--r--src/timesync/wait-sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timesync/wait-sync.c b/src/timesync/wait-sync.c
index 57e6cd3403..44de4932fd 100644
--- a/src/timesync/wait-sync.c
+++ b/src/timesync/wait-sync.c
@@ -147,7 +147,7 @@ static int clock_state_update(
tx.time.tv_usec /= 1000;
t = timeval_load(&tx.time);
- log_info("adjtime state %d status %x time %s", sp->adjtime_state, tx.status,
+ log_info("adjtime state %i status %x time %s", sp->adjtime_state, (unsigned) tx.status,
FORMAT_TIMESTAMP_STYLE(t, TIMESTAMP_US_UTC) ?: "unrepresentable");
sp->has_watchfile = access("/run/systemd/timesync/synchronized", F_OK) >= 0;