Changeset 23fe06c in mainline for uspace/srv/net/tl/tcp/sock.c


Ignore:
Timestamp:
2011-11-30T20:34:41Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b0d82d1
Parents:
92e717c
Message:

Include connection name in more debug messages. Set conn name for socket-based connections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/tcp/sock.c

    r92e717c r23fe06c  
    248248
    249249        trc = tcp_uc_open(lport, &fsocket, ap_active, &socket->conn);
     250        socket->conn->name = (char *)"C";
    250251
    251252        switch (trc) {
     
    264265        /* Push one fragment notification to client's queue */
    265266        tcp_sock_notify_data(sock_core);
    266         log_msg(LVL_DEBUG, "tcp_sock_listen(): notify conn\n");
     267        log_msg(LVL_DEBUG, "tcp_sock_connect(): notify conn\n");
    267268}
    268269
     
    306307
    307308        trc = tcp_uc_open(sock_core->port, &fsocket, ap_passive, &conn);
     309        conn->name = (char *)"S";
    308310
    309311        log_msg(LVL_DEBUG, " - decode TCP return code");
     
    360362        /* Push one fragment notification to client's queue */
    361363        tcp_sock_notify_data(asock_core);
    362         log_msg(LVL_DEBUG, "tcp_sock_listen(): notify aconn\n");
     364        log_msg(LVL_DEBUG, "tcp_sock_accept(): notify aconn\n");
    363365}
    364366
     
    459461        int rc;
    460462
    461         log_msg(LVL_DEBUG, "tcp_sock_recv[from]()");
     463        log_msg(LVL_DEBUG, "%p: tcp_sock_recv[from]()", client);
    462464
    463465        socket_id = SOCKET_GET_SOCKET_ID(call);
Note: See TracChangeset for help on using the changeset viewer.