mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
added message ID to message log
This commit is contained in:
parent
cba7ba7f9d
commit
4979e85871
@ -611,9 +611,13 @@ static char* get_string(private_message_t *this, char *buf, int len)
|
||||
int written;
|
||||
char *pos = buf;
|
||||
|
||||
written = snprintf(pos, len, "%N %s [",
|
||||
exchange_type_names, this->exchange_type,
|
||||
this->is_request ? "request" : "response");
|
||||
memset(buf, 0, len);
|
||||
len--;
|
||||
|
||||
written = snprintf(pos, len, "%N %s %d [",
|
||||
exchange_type_names, this->exchange_type,
|
||||
this->is_request ? "request" : "response",
|
||||
this->message_id);
|
||||
if (written >= len || written < 0)
|
||||
{
|
||||
return "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user