]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Print message ID as unsigned integer
authorMartin Willi <martin@revosec.ch>
Mon, 21 Nov 2011 10:54:29 +0000 (11:54 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:45 +0000 (17:30 +0100)
src/libcharon/encoding/message.c

index 7535f412cf2ec94f51cfcdc38efd5b20ce232e12..2bd52ec4c5d318206b161d843b72bd2ca9fcf2fd 100644 (file)
@@ -1100,7 +1100,7 @@ static char* get_string(private_message_t *this, char *buf, int len)
        memset(buf, 0, len);
        len--;
 
-       written = snprintf(pos, len, "%N %s %d [",
+       written = snprintf(pos, len, "%N %s %u [",
                                           exchange_type_names, this->exchange_type,
                                           this->is_request ? "request" : "response",
                                           this->message_id);