From b5da2f524c3b92eb9364d2a00d07c078111541a4 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 9 Jun 2016 12:42:28 +0200 Subject: [PATCH] repo: Fix build on 32-bit systems On 32-bit systems the modifier for printing 64bit values should be %llu instead of %lu. Just use appriopriate macros that do the right thing. Closes: #329 Approved by: giuseppe --- src/libostree/ostree-repo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 0d7ba116..22b874b3 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -4187,16 +4187,16 @@ _formatted_time_remaining_from_seconds (guint64 seconds_remaining) GString *description = g_string_new (NULL); if (days_remaining) - g_string_append_printf (description, "%lu days ", days_remaining); + g_string_append_printf (description, "%" G_GUINT64_FORMAT " days ", days_remaining); if (hours_remaining) - g_string_append_printf (description, "%lu hours ", hours_remaining % 24); + g_string_append_printf (description, "%" G_GUINT64_FORMAT " hours ", hours_remaining % 24); if (minutes_remaining) - g_string_append_printf (description, "%lu minutes ", minutes_remaining % 60); + g_string_append_printf (description, "%" G_GUINT64_FORMAT " minutes ", minutes_remaining % 60); if (seconds_remaining) - g_string_append_printf (description, "%lu seconds ", seconds_remaining % 60); + g_string_append_printf (description, "%" G_GUINT64_FORMAT " seconds ", seconds_remaining % 60); return g_string_free (description, FALSE); }