Use correct format string for guint64 on 32-bit

Signed-off-by: Simon McVittie <smcv@debian.org>
tingping/wmclass
Simon McVittie 2017-04-03 23:53:07 +01:00 committed by Alexander Larsson
parent af3e9ecffd
commit 646b4c468b
2 changed files with 3 additions and 3 deletions

View File

@ -5156,7 +5156,7 @@ flatpak_load_http_uri (SoupSession *soup_session,
}
bytes = g_string_free_to_bytes (g_steal_pointer (&content));
g_debug ("Received %" G_GSIZE_FORMAT " bytes", data.downloaded_bytes);
g_debug ("Received %" G_GUINT64_FORMAT " bytes", data.downloaded_bytes);
if (out_etag)
*out_etag = g_steal_pointer (&data.etag);
@ -5209,7 +5209,7 @@ flatpak_download_http_uri (SoupSession *soup_session,
return FALSE;
}
g_debug ("Received %" G_GSIZE_FORMAT " bytes", data.downloaded_bytes);
g_debug ("Received %" G_GUINT64_FORMAT " bytes", data.downloaded_bytes);
return TRUE;
}

View File

@ -1254,7 +1254,7 @@ progress_cb (OstreeAsyncProgress *progress, gpointer user_data)
else
formatted_bytes_sec = g_format_size (bytes_sec);
g_string_append_printf (buf, "Downloading extra data: %u%% (%lu/%lu) %s/s %s",
g_string_append_printf (buf, "Downloading extra data: %u%% (%" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT ") %s/s %s",
(guint) ((((double) transferred_extra_data_bytes) / total_extra_data_bytes) * 100),
transferred_extra_data_bytes, total_extra_data_bytes, formatted_bytes_sec, formatted_bytes_transferred);