Changeset c3f7d37 in mainline for uspace/lib/c/generic/inet/udp.c


Ignore:
Timestamp:
2015-06-07T12:36:44Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
048cd69
Parents:
5a5b087
Message:

Remove excessive debugging output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/udp.c

    r5a5b087 rc3f7d37  
    3636#include <inet/endpoint.h>
    3737#include <inet/udp.h>
    38 #include <io/log.h>
    3938#include <ipc/services.h>
    4039#include <ipc/udp.h>
     
    4847        async_exch_t *exch = async_exchange_begin(udp->sess);
    4948
    50         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_callback_create()");
    51 
    5249        aid_t req = async_send_0(exch, UDP_CALLBACK_CREATE, NULL);
    5350        int rc = async_connect_to_me(exch, 0, 0, 0, udp_cb_conn, udp);
     
    6865        service_id_t udp_svcid;
    6966        int rc;
    70 
    71         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_create()");
    7267
    7368        udp = calloc(1, sizeof(udp_t));
     
    122117        ipc_call_t answer;
    123118
    124         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_assoc_create()");
    125 
    126119        assoc = calloc(1, sizeof(udp_assoc_t));
    127120        if (assoc == NULL)
     
    164157        async_exch_t *exch;
    165158
    166         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_assoc_destroy()");
    167 
    168159        if (assoc == NULL)
    169160                return;
     
    184175        async_exch_t *exch;
    185176
    186         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_assoc_send_msg()");
    187 
    188177        exch = async_exchange_begin(assoc->udp->sess);
    189178        aid_t req = async_send_1(exch, UDP_ASSOC_SEND_MSG, assoc->id, NULL);
     
    228217        async_exch_t *exch;
    229218        ipc_call_t answer;
    230 
    231         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_rmsg_read()");
    232219
    233220        exch = async_exchange_begin(rmsg->udp->sess);
     
    237224
    238225        if (rc != EOK) {
    239                 log_msg(LOG_DEFAULT, LVL_NOTE, "udp_rmsg_read() - rc != EOK");
    240                 async_forget(req);
    241                 return rc;
    242         }
    243 
    244         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_rmsg_read() - wait for req");
     226                async_forget(req);
     227                return rc;
     228        }
     229
    245230        sysarg_t retval;
    246231        async_wait_for(req, &retval);
    247232        if (retval != EOK) {
    248                 log_msg(LOG_DEFAULT, LVL_NOTE, "udp_rmsg_read() - retval != EOK");
    249233                return retval;
    250234        }
    251235
    252         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_rmsg_read() - OK");
    253236        return EOK;
    254237}
     
    274257        inet_ep_t ep;
    275258        ipc_call_t answer;
    276 
    277         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_rmsg_info()");
    278259
    279260        exch = async_exchange_begin(udp->sess);
     
    303284        async_exch_t *exch;
    304285
    305         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_rmsg_discard()");
    306 
    307286        exch = async_exchange_begin(udp->sess);
    308287        sysarg_t rc = async_req_0_0(exch, UDP_RMSG_DISCARD);
     
    330309        int rc;
    331310
    332         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_ev_data()");
    333 
    334311        while (true) {
    335312                rc = udp_rmsg_info(udp, &rmsg);
    336313                if (rc != EOK) {
    337                         log_msg(LOG_DEFAULT, LVL_NOTE, "Error getting message info");
    338314                        break;
    339315                }
     
    341317                rc = udp_assoc_get(udp, rmsg.assoc_id, &assoc);
    342318                if (rc != EOK) {
    343                         log_msg(LOG_DEFAULT, LVL_NOTE, "assoc ID %zu not found",
    344                             rmsg.assoc_id);
    345319                        continue;
    346320                }
     
    351325                rc = udp_rmsg_discard(udp);
    352326                if (rc != EOK) {
    353                         log_msg(LOG_DEFAULT, LVL_NOTE, "Error discarding message");
    354327                        break;
    355328                }
     
    364337
    365338        async_answer_0(iid, EOK);
    366 
    367         log_msg(LOG_DEFAULT, LVL_NOTE, "udp_cb_conn()");
    368339
    369340        while (true) {
     
    371342                ipc_callid_t callid = async_get_call(&call);
    372343
    373                 log_msg(LOG_DEFAULT, LVL_NOTE, "udp_cb_conn() - msg %d",
    374                     (int)IPC_GET_IMETHOD(call));
    375344                if (!IPC_GET_IMETHOD(call)) {
    376345                        /* TODO: Handle hangup */
Note: See TracChangeset for help on using the changeset viewer.