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 <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2020-03-26 11:11:44 +00:00
parent 75f23be46e
commit 09f05a6f87

View File

@@ -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);
}