Commit 97188414 authored by Dafydd Harries's avatar Dafydd Harries

terminate STUN message dumps with a newline

darcs-hash:20070131142215-c9803-f8acb32280edf0fd528c7fead7d9a48d14d4c1b4.gz
parent 2c7e702e
......@@ -318,7 +318,7 @@ stun_message_dump (StunMessage *msg)
}
g_string_printf (tmp,
"%s %08x:%08x:%08x:%08x",
"%s %08x:%08x:%08x:%08x\n",
name,
*(guint32 *)(msg->transaction_id),
*(guint32 *)(msg->transaction_id + 4),
......@@ -329,7 +329,7 @@ stun_message_dump (StunMessage *msg)
for (attr = msg->attributes; *attr; attr++)
{
gchar *dump = stun_attribute_dump (*attr);
g_string_append_printf (tmp, "\n %s", dump);
g_string_append_printf (tmp, " %s\n", dump);
g_free (dump);
}
......
......@@ -16,7 +16,7 @@ main (void)
g_assert (NULL != dump);
g_assert (0 == strcmp (dump,
"BINDING-REQUEST 00000000:00000000:00000000:00000000\n"
" MAPPED-ADDRESS 2.3.4.5:2345"));
" MAPPED-ADDRESS 2.3.4.5:2345\n"));
g_free (dump);
stun_message_free (msg);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment