forked from Mirrors/flatpak-builder
Use correct format string for guint64 on 32-bit
Signed-off-by: Simon McVittie <smcv@debian.org>tingping/wmclass
parent
af3e9ecffd
commit
646b4c468b
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue