Changeset a1a101d in mainline for uspace/srv/net/tcp/ncsim.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/tcp/ncsim.c

    r920d0fc ra1a101d  
    7474        link_t *link;
    7575
    76         log_msg(LVL_DEBUG, "tcp_ncsim_bounce_seg()");
     76        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_bounce_seg()");
    7777        tcp_rqueue_bounce_seg(sp, seg);
    7878        return;
     
    8080        if (0 /*random() % 4 == 3*/) {
    8181                /* Drop segment */
    82                 log_msg(LVL_ERROR, "NCSim dropping segment");
     82                log_msg(LOG_DEFAULT, LVL_ERROR, "NCSim dropping segment");
    8383                tcp_segment_delete(seg);
    8484                return;
     
    8787        sqe = calloc(1, sizeof(tcp_squeue_entry_t));
    8888        if (sqe == NULL) {
    89                 log_msg(LVL_ERROR, "Failed allocating SQE.");
     89                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating SQE.");
    9090                return;
    9191        }
     
    126126        int rc;
    127127
    128         log_msg(LVL_DEBUG, "tcp_ncsim_fibril()");
     128        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_fibril()");
    129129
    130130
     
    139139                        sqe = list_get_instance(link, tcp_squeue_entry_t, link);
    140140
    141                         log_msg(LVL_DEBUG, "NCSim - Sleep");
     141                        log_msg(LOG_DEFAULT, LVL_DEBUG, "NCSim - Sleep");
    142142                        rc = fibril_condvar_wait_timeout(&sim_queue_cv,
    143143                            &sim_queue_lock, sqe->delay);
     
    147147                fibril_mutex_unlock(&sim_queue_lock);
    148148
    149                 log_msg(LVL_DEBUG, "NCSim - End Sleep");
     149                log_msg(LOG_DEFAULT, LVL_DEBUG, "NCSim - End Sleep");
    150150                tcp_rqueue_bounce_seg(&sqe->sp, sqe->seg);
    151151                free(sqe);
     
    161161        fid_t fid;
    162162
    163         log_msg(LVL_DEBUG, "tcp_ncsim_fibril_start()");
     163        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_ncsim_fibril_start()");
    164164
    165165        fid = fibril_create(tcp_ncsim_fibril, NULL);
    166166        if (fid == 0) {
    167                 log_msg(LVL_ERROR, "Failed creating ncsim fibril.");
     167                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed creating ncsim fibril.");
    168168                return;
    169169        }
Note: See TracChangeset for help on using the changeset viewer.