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 7535f41..2bd52ec 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);