Skip to content

Commit

Permalink
Added newlines to conn print table
Browse files Browse the repository at this point in the history
  • Loading branch information
johandc committed Sep 28, 2015
1 parent 3372a1f commit 99c2d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/csp_conn.c
Expand Up @@ -445,7 +445,7 @@ void csp_conn_print_table(void) {

for (i = 0; i < CSP_CONN_MAX; i++) {
conn = &arr_conn[i];
printf("[%02u %p] S:%u, %u -> %u, %u -> %u, sock: %p",
printf("[%02u %p] S:%u, %u -> %u, %u -> %u, sock: %p\n",
i, conn, conn->state, conn->idin.src, conn->idin.dst,
conn->idin.dport, conn->idin.sport, conn->socket);
#ifdef CSP_USE_RDP
Expand All @@ -467,7 +467,7 @@ int csp_conn_print_table_str(char * str_buf, int str_size) {

for (i = start; i < CSP_CONN_MAX; i++) {
conn = &arr_conn[i];
snprintf(buf, sizeof(buf), "[%02u %p] S:%u, %u -> %u, %u -> %u, sock: %p",
snprintf(buf, sizeof(buf), "[%02u %p] S:%u, %u -> %u, %u -> %u, sock: %p\n",
i, conn, conn->state, conn->idin.src, conn->idin.dst,
conn->idin.dport, conn->idin.sport, conn->socket);

Expand Down

0 comments on commit 99c2d7b

Please sign in to comment.