All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shane Bryan <shane.bryan@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] fix test compile
Date: Wed, 24 Jun 2009 16:51:25 -0700	[thread overview]
Message-ID: <20090624165125.1a66f6ef@cyclone> (raw)

[-- Attachment #1: Type: text/plain, Size: 107 bytes --]

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

Shane...

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-fix-test-compile.patch --]
[-- Type: text/x-patch, Size: 961 bytes --]

>From 6474da882d0d7289fbf1be664e992ae0fcdacbd1 Mon Sep 17 00:00:00 2001
From: Shane Bryan <shane.bryan@linux.intel.com>
Date: Wed, 24 Jun 2009 15:16:02 -0700
Subject: [PATCH] fix test compile

Signed-off-by: Shane Bryan <shane.bryan@linux.intel.com>
---
 unit/test-sms.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/unit/test-sms.c b/unit/test-sms.c
index 37f0f26..47a3f4b 100644
--- a/unit/test-sms.c
+++ b/unit/test-sms.c
@@ -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);
 
-- 
1.6.0.4


             reply	other threads:[~2009-06-24 23:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24 23:51 Shane Bryan [this message]
2009-06-25  1:01 ` [PATCH] fix test compile Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090624165125.1a66f6ef@cyclone \
    --to=shane.bryan@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.