[geary/geary-0.11] Set correct length modifiers for some format strings with 64-bit values.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/geary-0.11] Set correct length modifiers for some format strings with 64-bit values.
- Date: Sun, 19 Jun 2016 12:13:54 +0000 (UTC)
commit bc2711ff9d5d99650abe0b4807027e2a54876b1f
Author: Michael James Gratton <mike vee net>
Date: Sun Jun 19 22:05:58 2016 +1000
Set correct length modifiers for some format strings with 64-bit values.
This fixes regular crashes from incorrect lengths on i686 arches - see
Vala Bug 767839.
Fixes Geary Bug 758621
* src/engine/imap-engine/imap-engine-minimal-folder.vala: Use "%lld" when
printing int64 values.
.../imap-engine/imap-engine-minimal-folder.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-minimal-folder.vala
b/src/engine/imap-engine/imap-engine-minimal-folder.vala
index 8d8ba83..b4279d0 100644
--- a/src/engine/imap-engine/imap-engine-minimal-folder.vala
+++ b/src/engine/imap-engine/imap-engine-minimal-folder.vala
@@ -1233,7 +1233,7 @@ private class Geary.ImapEngine.MinimalFolder : Geary.Folder, Geary.FolderSupport
Geary.iterate<ImapDB.EmailIdentifier>(owned_id).to_array_list());
} else {
debug("%s do_replay_removed_message: remote_position=%d unknown in local store "
- + "(reported_remote_count=%d local_position=%d local_count=%d)",
+ + "(reported_remote_count=%d local_position=%lld local_count=%d)",
to_string(), remote_position.value, reported_remote_count, local_position, local_count);
}
@@ -1270,7 +1270,7 @@ private class Geary.ImapEngine.MinimalFolder : Geary.Folder, Geary.FolderSupport
notify_email_count_changed(reported_remote_count, CountChangeReason.REMOVED);
debug("%s do_replay_remove_message: completed, current remote_count=%d "
- + "(reported_remote_count=%d local_count=%d starting local_count=%d remote_position=%d
local_position=%d marked=%s)",
+ + "(reported_remote_count=%d local_count=%d starting local_count=%d remote_position=%lld
local_position=%lld marked=%s)",
to_string(), remote_count, reported_remote_count, new_local_count, local_count,
remote_position.value,
local_position, marked.to_string());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]