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

    rde73242 refdfebc  
    204204        uint16_t foff;
    205205
    206         log_msg(LVL_DEBUG, "inet_pdu_decode()");
     206        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_pdu_decode()");
    207207
    208208        if (size < sizeof(ip_header_t)) {
    209                 log_msg(LVL_DEBUG, "PDU too short (%zu)", size);
     209                log_msg(LOG_DEFAULT, LVL_DEBUG, "PDU too short (%zu)", size);
    210210                return EINVAL;
    211211        }
     
    216216            hdr->ver_ihl);
    217217        if (version != 4) {
    218                 log_msg(LVL_DEBUG, "Version (%d) != 4", version);
     218                log_msg(LOG_DEFAULT, LVL_DEBUG, "Version (%d) != 4", version);
    219219                return EINVAL;
    220220        }
     
    222222        tot_len = uint16_t_be2host(hdr->tot_len);
    223223        if (tot_len < sizeof(ip_header_t)) {
    224                 log_msg(LVL_DEBUG, "Total Length too small (%zu)", tot_len);
     224                log_msg(LOG_DEFAULT, LVL_DEBUG, "Total Length too small (%zu)", tot_len);
    225225                return EINVAL;
    226226        }
    227227
    228228        if (tot_len > size) {
    229                 log_msg(LVL_DEBUG, "Total Length = %zu > PDU size = %zu",
     229                log_msg(LOG_DEFAULT, LVL_DEBUG, "Total Length = %zu > PDU size = %zu",
    230230                        tot_len, size);
    231231                return EINVAL;
     
    256256        packet->data = calloc(packet->size, 1);
    257257        if (packet->data == NULL) {
    258                 log_msg(LVL_WARN, "Out of memory.");
     258                log_msg(LOG_DEFAULT, LVL_WARN, "Out of memory.");
    259259                return ENOMEM;
    260260        }
Note: See TracChangeset for help on using the changeset viewer.