Changeset efdfebc in mainline for uspace/srv/net/loopip/loopip.c


Ignore:
Timestamp:
2012-11-06T21:03:44Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
338810f
Parents:
de73242 (diff), 94795812 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rde73242 refdfebc  
    7575{
    7676        while (true) {
    77                 log_msg(LVL_DEBUG, "loopip_recv_fibril(): Wait for one item");
     77                log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_recv_fibril(): Wait for one item");
    7878                link_t *link = prodcons_consume(&loopip_rcv_queue);
    7979                rqueue_entry_t *rqe = list_get_instance(link, rqueue_entry_t, link);
     
    9696        rc = loc_server_register(NAME);
    9797        if (rc != EOK) {
    98                 log_msg(LVL_ERROR, "Failed registering server.");
     98                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server.");
    9999                return rc;
    100100        }
     
    108108        rc = loc_service_register(svc_name, &sid);
    109109        if (rc != EOK) {
    110                 log_msg(LVL_ERROR, "Failed registering service %s.", svc_name);
     110                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service %s.", svc_name);
    111111                return rc;
    112112        }
     
    114114        rc = loc_category_get_id("iplink", &iplink_cat, IPC_FLAG_BLOCKING);
    115115        if (rc != EOK) {
    116                 log_msg(LVL_ERROR, "Failed resolving category 'iplink'.");
     116                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed resolving category 'iplink'.");
    117117                return rc;
    118118        }
     
    120120        rc = loc_service_add_to_cat(sid, iplink_cat);
    121121        if (rc != EOK) {
    122                 log_msg(LVL_ERROR, "Failed adding %s to category.", svc_name);
     122                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed adding %s to category.", svc_name);
    123123                return rc;
    124124        }
     
    135135static void loopip_client_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    136136{
    137         log_msg(LVL_DEBUG, "loopip_client_conn()");
     137        log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_client_conn()");
    138138        iplink_conn(iid, icall, &loopip_iplink);
    139139}
     
    141141static int loopip_open(iplink_srv_t *srv)
    142142{
    143         log_msg(LVL_DEBUG, "loopip_open()");
     143        log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_open()");
    144144        return EOK;
    145145}
     
    147147static int loopip_close(iplink_srv_t *srv)
    148148{
    149         log_msg(LVL_DEBUG, "loopip_close()");
     149        log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_close()");
    150150        return EOK;
    151151}
     
    155155        rqueue_entry_t *rqe;
    156156
    157         log_msg(LVL_DEBUG, "loopip_send()");
     157        log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_send()");
    158158
    159159        rqe = calloc(1, sizeof(rqueue_entry_t));
     
    184184static int loopip_get_mtu(iplink_srv_t *srv, size_t *mtu)
    185185{
    186         log_msg(LVL_DEBUG, "loopip_get_mtu()");
     186        log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_get_mtu()");
    187187        *mtu = 1500;
    188188        return EOK;
     
    191191static int loopip_addr_add(iplink_srv_t *srv, iplink_srv_addr_t *addr)
    192192{
    193         log_msg(LVL_DEBUG, "loopip_addr_add(0x%" PRIx32 ")", addr->ipv4);
     193        log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_addr_add(0x%" PRIx32 ")", addr->ipv4);
    194194        return EOK;
    195195}
     
    197197static int loopip_addr_remove(iplink_srv_t *srv, iplink_srv_addr_t *addr)
    198198{
    199         log_msg(LVL_DEBUG, "loopip_addr_remove(0x%" PRIx32 ")", addr->ipv4);
     199        log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_addr_remove(0x%" PRIx32 ")", addr->ipv4);
    200200        return EOK;
    201201}
     
    207207        printf(NAME ": HelenOS loopback IP link provider\n");
    208208
    209         if (log_init(NAME, LVL_WARN) != EOK) {
     209        if (log_init(NAME) != EOK) {
    210210                printf(NAME ": Failed to initialize logging.\n");
    211211                return 1;
Note: See TracChangeset for help on using the changeset viewer.