Changeset a1a101d in mainline for uspace/srv/net/inetsrv/inetsrv.c


Ignore:
Timestamp:
2012-08-17T16:58:51Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc0ccab
Parents:
920d0fc
Message:

Get rid of log_log_msg()

All calls to log_msg(LVL_*) were rewritten to
log_msg(LOG_DEFAULT, LVL_*).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetsrv.c

    r920d0fc ra1a101d  
    6666static int inet_init(void)
    6767{
    68         log_msg(LVL_DEBUG, "inet_init()");
     68        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()");
    6969       
    7070        async_set_client_connection(inet_client_conn);
     
    7272        int rc = loc_server_register(NAME);
    7373        if (rc != EOK) {
    74                 log_msg(LVL_ERROR, "Failed registering server (%d).", rc);
     74                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc);
    7575                return EEXIST;
    7676        }
     
    8080            INET_PORT_DEFAULT);
    8181        if (rc != EOK) {
    82                 log_msg(LVL_ERROR, "Failed registering service (%d).", rc);
     82                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc);
    8383                return EEXIST;
    8484        }
     
    8787            INET_PORT_CFG);
    8888        if (rc != EOK) {
    89                 log_msg(LVL_ERROR, "Failed registering service (%d).", rc);
     89                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc);
    9090                return EEXIST;
    9191        }
     
    9494            INET_PORT_PING);
    9595        if (rc != EOK) {
    96                 log_msg(LVL_ERROR, "Failed registering service (%d).", rc);
     96                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc);
    9797                return EEXIST;
    9898        }
     
    108108    ipc_call_t *call)
    109109{
    110         log_msg(LVL_DEBUG, "inet_callback_create_srv()");
     110        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_callback_create_srv()");
    111111
    112112        async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE);
     
    143143
    144144        if (dir->aobj == NULL) {
    145                 log_msg(LVL_DEBUG, "inet_send: No route to destination.");
     145                log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_send: No route to destination.");
    146146                return ENOENT;
    147147        }
     
    194194        int rc;
    195195
    196         log_msg(LVL_DEBUG, "inet_get_srcaddr_srv()");
     196        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_get_srcaddr_srv()");
    197197
    198198        remote.ipv4 = IPC_GET_ARG1(*call);
     
    212212        int rc;
    213213
    214         log_msg(LVL_DEBUG, "inet_send_srv()");
     214        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_send_srv()");
    215215
    216216        dgram.src.ipv4 = IPC_GET_ARG1(*call);
     
    238238
    239239        proto = IPC_GET_ARG1(*call);
    240         log_msg(LVL_DEBUG, "inet_set_proto_srv(%lu)", (unsigned long) proto);
     240        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_set_proto_srv(%lu)", (unsigned long) proto);
    241241
    242242        if (proto > UINT8_MAX) {
     
    272272        inet_client_t client;
    273273
    274         log_msg(LVL_DEBUG, "inet_default_conn()");
     274        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_default_conn()");
    275275
    276276        /* Accept the connection */
     
    378378        inet_client_t *client;
    379379
    380         log_msg(LVL_DEBUG, "inet_recv_dgram_local()");
     380        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_recv_dgram_local()");
    381381
    382382        /* ICMP messages are handled internally */
     
    386386        client = inet_client_find(proto);
    387387        if (client == NULL) {
    388                 log_msg(LVL_DEBUG, "No client found for protocol 0x%" PRIx8,
     388                log_msg(LOG_DEFAULT, LVL_DEBUG, "No client found for protocol 0x%" PRIx8,
    389389                    proto);
    390390                return ENOENT;
Note: See TracChangeset for help on using the changeset viewer.