[PATCH] directconn: Silence the compiler.

0 views
Skip to first unread message

Víctor Manuel Jáquez Leal

unread,
Dec 15, 2009, 6:54:24 AM12/15/09
to msn-...@googlegroups.com, Víctor Manuel Jáquez Leal
Using the c99 %zu for size variables logging.

Signed-off-by: Víctor Manuel Jáquez Leal <vja...@igalia.com>
---
cvr/pn_direct_conn.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cvr/pn_direct_conn.c b/cvr/pn_direct_conn.c
index f17afe1..fe0c7ab 100644
--- a/cvr/pn_direct_conn.c
+++ b/cvr/pn_direct_conn.c
@@ -187,7 +187,7 @@ pn_direct_conn_write(struct pn_direct_conn *direct_conn,

g_return_val_if_fail(direct_conn != NULL, 0);

- pn_debug ("bytes_to_write=%d", len);
+ pn_debug ("bytes_to_write=%zu", len);

body_len = GUINT32_TO_LE(len);

@@ -205,7 +205,7 @@ pn_direct_conn_write(struct pn_direct_conn *direct_conn,

if (status == G_IO_STATUS_NORMAL)
{
- pn_debug ("bytes_written=%d", tmp);
+ pn_debug ("bytes_written=%zu", tmp);

#ifdef PECAN_DEBUG_DC_FILES
char *str;
@@ -318,7 +318,7 @@ read_cb(GIOChannel *source, GIOCondition condition, gpointer data)
return FALSE;
}

- pn_debug ("bytes_read=%d", len);
+ pn_debug ("bytes_read=%zu", len);

if (len > 0)
{
--
1.6.5

Felipe Contreras

unread,
Dec 15, 2009, 7:04:36 AM12/15/09
to Víctor Manuel Jáquez Leal, msn-...@googlegroups.com
2009/12/15 Víctor Manuel Jáquez Leal <vja...@igalia.com>:
> Using the c99 %zu for size variables logging.

Use this format:
subsystem: short summary <- lowercase

Or
Short summary <- uppercase

In both cases no full-stop at the end.

Anyway, I changed it and pushed. Thanks :)

--
Felipe Contreras
Reply all
Reply to author
Forward
0 new messages