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

    r920d0fc ra1a101d  
    5959
    6060        if (addr == NULL) {
    61                 log_msg(LVL_ERROR, "Failed allocating address object. "
     61                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating address object. "
    6262                    "Out of memory.");
    6363                return NULL;
     
    114114        uint32_t mask;
    115115
    116         log_msg(LVL_DEBUG, "inet_addrobj_find(%x)", (unsigned)addr->ipv4);
     116        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find(%x)", (unsigned)addr->ipv4);
    117117
    118118        fibril_mutex_lock(&addr_list_lock);
     
    125125                if ((naddr->naddr.ipv4 & mask) == (addr->ipv4 & mask)) {
    126126                        fibril_mutex_unlock(&addr_list_lock);
    127                         log_msg(LVL_DEBUG, "inet_addrobj_find: found %p",
     127                        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find: found %p",
    128128                            naddr);
    129129                        return naddr;
     
    131131        }
    132132
    133         log_msg(LVL_DEBUG, "inet_addrobj_find: Not found");
     133        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find: Not found");
    134134        fibril_mutex_unlock(&addr_list_lock);
    135135
     
    147147        assert(fibril_mutex_is_locked(&addr_list_lock));
    148148
    149         log_msg(LVL_DEBUG, "inet_addrobj_find_by_name_locked('%s', '%s')",
     149        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name_locked('%s', '%s')",
    150150            name, ilink->svc_name);
    151151
     
    155155
    156156                if (naddr->ilink == ilink && str_cmp(naddr->name, name) == 0) {
    157                         log_msg(LVL_DEBUG, "inet_addrobj_find_by_name_locked: found %p",
     157                        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name_locked: found %p",
    158158                            naddr);
    159159                        return naddr;
     
    161161        }
    162162
    163         log_msg(LVL_DEBUG, "inet_addrobj_find_by_name_locked: Not found");
     163        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name_locked: Not found");
    164164
    165165        return NULL;
     
    177177        inet_addrobj_t *aobj;
    178178
    179         log_msg(LVL_DEBUG, "inet_addrobj_find_by_name('%s', '%s')",
     179        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name('%s', '%s')",
    180180            name, ilink->svc_name);
    181181
     
    194194inet_addrobj_t *inet_addrobj_get_by_id(sysarg_t id)
    195195{
    196         log_msg(LVL_DEBUG, "inet_addrobj_get_by_id(%zu)", (size_t)id);
     196        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_get_by_id(%zu)", (size_t)id);
    197197
    198198        fibril_mutex_lock(&addr_list_lock);
Note: See TracChangeset for help on using the changeset viewer.