diff options
author | Teemu Ikonen <tpikonen@mailbox.org> | 2024-07-10 12:01:22 +0300 |
---|---|---|
committer | Teemu Ikonen <tpikonen@mailbox.org> | 2024-07-10 13:25:42 +0300 |
commit | 0ad504ec11f6a343ec3369363ce1d6b15c488244 (patch) | |
tree | 5955604781313360f5c4bf5b48f2c68221dbd9b2 | |
parent | 507c262226b46875b7bbef50ce69c0c65c5c4940 (diff) |
locator: Debug print Priority Source lock age as guint
Fixes a compiler warning about mismatch between '%lu' format string and
guint64 which appears in some build configurations. Also add unit to the
format string.
-rw-r--r-- | src/gclue-locator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gclue-locator.c b/src/gclue-locator.c index 8359445..d6ed560 100644 --- a/src/gclue-locator.c +++ b/src/gclue-locator.c @@ -153,8 +153,9 @@ set_location (GClueLocator *locator, if (locator->priv->priority_source_lock && !gclue_location_source_get_priority_source (source)) { - g_debug ("Priority Source Lock (age %lu) active, ignoring new %s location", - new_timestamp - locator->priv->priority_source_lock_timestamp, src_name); + g_debug ("Priority Source Lock (age %u s) active, ignoring new %s location", + (guint) (new_timestamp - locator->priv->priority_source_lock_timestamp), + src_name); return; } |