Skip to contentSkip to conversation

fix test compile

PATCH In review Shane Bryan 2 participants 2 messages Jun 24, 2009 – Jun 25, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix test compile

unit/test-sms.c: g_print format errors on x86_64 compiles, using %zd and %ld as appropriate.

Shane...

Quoted 1 line

From 6474da882d0d7289fbf1be664e992ae0fcdacbd1 Mon Sep 17 00:00:00 2001

From: Shane Bryan <[email protected]>
Date: Wed, 24 Jun 2009 15:16:02 -0700
Subject: [PATCH] fix test compile

---
 unit/test-sms.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
unit/test-sms.c +2 -2
index 37f0f26..47a3f4b 100644
@@ -781,7 +781,7 @@ static void test_prepare_concat()
 	guint8 seq;
 
 	if (g_test_verbose())
-		g_print("strlen: %d\n", strlen(pad1));
+		g_print("strlen: %zd\n", strlen(pad1));
 
 	r = sms_text_prepare(pad1, 0, TRUE, NULL);
 
@@ -815,7 +815,7 @@ static void test_prepare_concat()
 		decode_hex_own_buf((char *)l->data, -1, &len, 0, pdu);
 
 		if (g_test_verbose())
-			g_print("PDU Len: %d", len);
+			g_print("PDU Len: %ld", len);
 
 		ok = sms_decode(pdu, len, TRUE, len - 1, &decoded);
 
Signature · 1 line
1.6.0.4
#1 lore raw
Quoted 4 lines

unit/test-sms.c: g_print format errors on x86_64 compiles, using %zd and %ld as appropriate.

Shane...

Patch has been applied. Thanks.

Regards,
-Denis