From 09f05a6f87f936c8e1b86e788f01a246700be6b2 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 26 Mar 2020 11:11:44 +0000 Subject: [PATCH] dir: Format 64-bit ints correctly %ld is only 32 bits long on ILP32 (32-bit) platforms. This partially addresses #3499. Signed-off-by: Simon McVittie --- common/flatpak-dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 6ffad270..3f591c9c 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -5465,7 +5465,7 @@ flatpak_dir_pull_untrusted_local (FlatpakDir *self, new_timestamp = ostree_commit_get_timestamp (new_commit); if (new_timestamp < old_timestamp) - return flatpak_fail_error (error, FLATPAK_ERROR_DOWNGRADE, "Not allowed to downgrade %s (old_commit: %s/%ld new_commit: %s/%ld ", + return flatpak_fail_error (error, FLATPAK_ERROR_DOWNGRADE, "Not allowed to downgrade %s (old_commit: %s/%" G_GINT64_FORMAT " new_commit: %s/%" G_GINT64_FORMAT ")", ref, current_checksum, old_timestamp, checksum, new_timestamp); }