Re: [PATCH] Use correct printf modifier for gsize
- From: Aleksander Morgado <aleksander lanedo com>
- To: Thomas Bechtold <thomasbechtold jpberlin de>
- Cc: networkmanager-list gnome org
- Subject: Re: [PATCH] Use correct printf modifier for gsize
- Date: Tue, 26 Mar 2013 12:39:07 +0100
On 25/03/13 14:28, Thomas Bechtold wrote:
Hi,
this patch is for MM06. But I guess master is also affected.
Pushed to MM_06, and also made the fix in git master.
Thanks!
Cheers,
Tom
---
src/mm-sms-utils.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mm-sms-utils.c b/src/mm-sms-utils.c
index f04cbe2..cda9337 100644
--- a/src/mm-sms-utils.c
+++ b/src/mm-sms-utils.c
@@ -362,7 +362,7 @@ sms_parse_pdu (const char *hexpdu, GError **error)
variable_length_items = smsc_addr_num_octets;
if (pdu_len < variable_length_items + SMS_MIN_PDU_LEN) {
g_set_error (error, MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
- "PDU too short (1): %zd vs %d",
+ "PDU too short (1): %" G_GSIZE_FORMAT " vs %d",
pdu_len,
variable_length_items + SMS_MIN_PDU_LEN);
g_free (pdu);
@@ -380,7 +380,7 @@ sms_parse_pdu (const char *hexpdu, GError **error)
variable_length_items += sender_addr_num_octets;
if (pdu_len < variable_length_items + SMS_MIN_PDU_LEN) {
g_set_error (error, MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
- "PDU too short (2): %zd vs %d",
+ "PDU too short (2): %" G_GSIZE_FORMAT " vs %d",
pdu_len,
variable_length_items + SMS_MIN_PDU_LEN);
g_free (pdu);
@@ -400,7 +400,7 @@ sms_parse_pdu (const char *hexpdu, GError **error)
variable_length_items += user_data_len;
if (pdu_len < variable_length_items + SMS_MIN_PDU_LEN) {
g_set_error (error, MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
- "PDU too short (3): %zd vs %d",
+ "PDU too short (3): %" G_GSIZE_FORMAT " vs %d",
pdu_len,
variable_length_items + SMS_MIN_PDU_LEN);
g_free (pdu);
--
Aleksander
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]