Changeset a1a101d in mainline for uspace/srv/net/ethip


Ignore:
Timestamp:
2012-08-17T16:58:51Z (14 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_*).

Location:
uspace/srv/net/ethip
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/ethip/arp.c

    r920d0fc ra1a101d  
    5959        ethip_link_addr_t *laddr;
    6060
    61         log_msg(LVL_DEBUG, "arp_received()");
     61        log_msg(LOG_DEFAULT, LVL_DEBUG, "arp_received()");
    6262
    6363        rc = arp_pdu_decode(frame->data, frame->size, &packet);
     
    6565                return;
    6666
    67         log_msg(LVL_DEBUG, "ARP PDU decoded, opcode=%d, tpa=%x",
     67        log_msg(LOG_DEFAULT, LVL_DEBUG, "ARP PDU decoded, opcode=%d, tpa=%x",
    6868            packet.opcode, packet.target_proto_addr.ipv4);
    6969
    7070        laddr = ethip_nic_addr_find(nic, &packet.target_proto_addr);
    7171        if (laddr != NULL) {
    72                 log_msg(LVL_DEBUG, "Request/reply to my address");
     72                log_msg(LOG_DEFAULT, LVL_DEBUG, "Request/reply to my address");
    7373
    7474                (void) atrans_add(&packet.sender_proto_addr,
     
    122122        size_t fsize;
    123123
    124         log_msg(LVL_DEBUG, "arp_send_packet()");
     124        log_msg(LOG_DEFAULT, LVL_DEBUG, "arp_send_packet()");
    125125
    126126        rc = arp_pdu_encode(packet, &pdata, &psize);
  • uspace/srv/net/ethip/ethip.c

    r920d0fc ra1a101d  
    7777        int rc = loc_server_register(NAME);
    7878        if (rc != EOK) {
    79                 log_msg(LVL_ERROR, "Failed registering server.");
     79                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server.");
    8080                return rc;
    8181        }
     
    9696        char *svc_name = NULL;
    9797
    98         log_msg(LVL_DEBUG, "ethip_iplink_init()");
     98        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_iplink_init()");
    9999
    100100        iplink_srv_init(&nic->iplink);
     
    104104        rc = asprintf(&svc_name, "net/eth%u", ++link_num);
    105105        if (rc < 0) {
    106                 log_msg(LVL_ERROR, "Out of memory.");
     106                log_msg(LOG_DEFAULT, LVL_ERROR, "Out of memory.");
    107107                goto error;
    108108        }
     
    110110        rc = loc_service_register(svc_name, &sid);
    111111        if (rc != EOK) {
    112                 log_msg(LVL_ERROR, "Failed registering service %s.", svc_name);
     112                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service %s.", svc_name);
    113113                goto error;
    114114        }
     
    118118        rc = loc_category_get_id("iplink", &iplink_cat, IPC_FLAG_BLOCKING);
    119119        if (rc != EOK) {
    120                 log_msg(LVL_ERROR, "Failed resolving category 'iplink'.");
     120                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed resolving category 'iplink'.");
    121121                goto error;
    122122        }
     
    124124        rc = loc_service_add_to_cat(sid, iplink_cat);
    125125        if (rc != EOK) {
    126                 log_msg(LVL_ERROR, "Failed adding %s to category.", svc_name);
     126                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed adding %s to category.", svc_name);
    127127                goto error;
    128128        }
     
    142142
    143143        sid = (service_id_t)IPC_GET_ARG1(*icall);
    144         log_msg(LVL_DEBUG, "ethip_client_conn(%u)", (unsigned)sid);
     144        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_client_conn(%u)", (unsigned)sid);
    145145        nic = ethip_nic_find_by_iplink_sid(sid);
    146146        if (nic == NULL) {
    147                 log_msg(LVL_WARN, "Uknown service ID.");
     147                log_msg(LOG_DEFAULT, LVL_WARN, "Uknown service ID.");
    148148                return;
    149149        }
     
    154154static int ethip_open(iplink_srv_t *srv)
    155155{
    156         log_msg(LVL_DEBUG, "ethip_open()");
     156        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_open()");
    157157        return EOK;
    158158}
     
    160160static int ethip_close(iplink_srv_t *srv)
    161161{
    162         log_msg(LVL_DEBUG, "ethip_close()");
     162        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_close()");
    163163        return EOK;
    164164}
     
    173173        int rc;
    174174
    175         log_msg(LVL_DEBUG, "ethip_send()");
     175        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_send()");
    176176
    177177        rc = arp_translate(nic, &sdu->lsrc, &sdu->ldest, &dest_mac_addr);
    178178        if (rc != EOK) {
    179                 log_msg(LVL_WARN, "Failed to look up IP address 0x%" PRIx32,
     179                log_msg(LOG_DEFAULT, LVL_WARN, "Failed to look up IP address 0x%" PRIx32,
    180180                    sdu->ldest.ipv4);
    181181                return rc;
     
    200200int ethip_received(iplink_srv_t *srv, void *data, size_t size)
    201201{
    202         log_msg(LVL_DEBUG, "ethip_received(): srv=%p", srv);
     202        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_received(): srv=%p", srv);
    203203        ethip_nic_t *nic = (ethip_nic_t *)srv->arg;
    204204        eth_frame_t frame;
     
    206206        int rc;
    207207
    208         log_msg(LVL_DEBUG, "ethip_received()");
    209 
    210         log_msg(LVL_DEBUG, " - eth_pdu_decode");
     208        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_received()");
     209
     210        log_msg(LOG_DEFAULT, LVL_DEBUG, " - eth_pdu_decode");
    211211        rc = eth_pdu_decode(data, size, &frame);
    212212        if (rc != EOK) {
    213                 log_msg(LVL_DEBUG, " - eth_pdu_decode failed");
     213                log_msg(LOG_DEFAULT, LVL_DEBUG, " - eth_pdu_decode failed");
    214214                return rc;
    215215        }
     
    220220                break;
    221221        case ETYPE_IP:
    222                 log_msg(LVL_DEBUG, " - construct SDU");
     222                log_msg(LOG_DEFAULT, LVL_DEBUG, " - construct SDU");
    223223                sdu.lsrc.ipv4 = (192 << 24) | (168 << 16) | (0 << 8) | 1;
    224224                sdu.ldest.ipv4 = (192 << 24) | (168 << 16) | (0 << 8) | 4;
    225225                sdu.data = frame.data;
    226226                sdu.size = frame.size;
    227                 log_msg(LVL_DEBUG, " - call iplink_ev_recv");
     227                log_msg(LOG_DEFAULT, LVL_DEBUG, " - call iplink_ev_recv");
    228228                rc = iplink_ev_recv(&nic->iplink, &sdu);
    229229                break;
    230230        default:
    231                 log_msg(LVL_DEBUG, "Unknown ethertype 0x%" PRIx16,
     231                log_msg(LOG_DEFAULT, LVL_DEBUG, "Unknown ethertype 0x%" PRIx16,
    232232                    frame.etype_len);
    233233        }
     
    239239static int ethip_get_mtu(iplink_srv_t *srv, size_t *mtu)
    240240{
    241         log_msg(LVL_DEBUG, "ethip_get_mtu()");
     241        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_get_mtu()");
    242242        *mtu = 1500;
    243243        return EOK;
     
    248248        ethip_nic_t *nic = (ethip_nic_t *)srv->arg;
    249249
    250         log_msg(LVL_DEBUG, "ethip_addr_add(0x%" PRIx32 ")", addr->ipv4);
     250        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_addr_add(0x%" PRIx32 ")", addr->ipv4);
    251251        return ethip_nic_addr_add(nic, addr);
    252252}
     
    256256        ethip_nic_t *nic = (ethip_nic_t *)srv->arg;
    257257
    258         log_msg(LVL_DEBUG, "ethip_addr_remove(0x%" PRIx32 ")", addr->ipv4);
     258        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_addr_remove(0x%" PRIx32 ")", addr->ipv4);
    259259        return ethip_nic_addr_add(nic, addr);
    260260}
  • uspace/srv/net/ethip/ethip_nic.c

    r920d0fc ra1a101d  
    6868        rc = loc_category_get_id("nic", &iplink_cat, IPC_FLAG_BLOCKING);
    6969        if (rc != EOK) {
    70                 log_msg(LVL_ERROR, "Failed resolving category 'nic'.");
     70                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed resolving category 'nic'.");
    7171                fibril_mutex_unlock(&ethip_discovery_lock);
    7272                return ENOENT;
     
    7575        rc = loc_category_get_svcs(iplink_cat, &svcs, &count);
    7676        if (rc != EOK) {
    77                 log_msg(LVL_ERROR, "Failed getting list of IP links.");
     77                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed getting list of IP links.");
    7878                fibril_mutex_unlock(&ethip_discovery_lock);
    7979                return EIO;
     
    9393
    9494                if (!already_known) {
    95                         log_msg(LVL_DEBUG, "Found NIC '%lu'",
     95                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Found NIC '%lu'",
    9696                            (unsigned long) svcs[i]);
    9797                        rc = ethip_nic_open(svcs[i]);
    9898                        if (rc != EOK)
    99                                 log_msg(LVL_ERROR, "Could not open NIC.");
     99                                log_msg(LOG_DEFAULT, LVL_ERROR, "Could not open NIC.");
    100100                }
    101101        }
     
    110110
    111111        if (nic == NULL) {
    112                 log_msg(LVL_ERROR, "Failed allocating NIC structure. "
     112                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating NIC structure. "
    113113                    "Out of memory.");
    114114                return NULL;
     
    126126
    127127        if (laddr == NULL) {
    128                 log_msg(LVL_ERROR, "Failed allocating NIC address structure. "
     128                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed allocating NIC address structure. "
    129129                    "Out of memory.");
    130130                return NULL;
     
    153153        nic_address_t nic_address;
    154154       
    155         log_msg(LVL_DEBUG, "ethip_nic_open()");
     155        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_open()");
    156156        ethip_nic_t *nic = ethip_nic_new();
    157157        if (nic == NULL)
     
    160160        int rc = loc_service_get_name(sid, &nic->svc_name);
    161161        if (rc != EOK) {
    162                 log_msg(LVL_ERROR, "Failed getting service name.");
     162                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed getting service name.");
    163163                goto error;
    164164        }
     
    166166        nic->sess = loc_service_connect(EXCHANGE_SERIALIZE, sid, 0);
    167167        if (nic->sess == NULL) {
    168                 log_msg(LVL_ERROR, "Failed connecting '%s'", nic->svc_name);
     168                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed connecting '%s'", nic->svc_name);
    169169                goto error;
    170170        }
     
    174174        rc = nic_callback_create(nic->sess, ethip_nic_cb_conn, nic);
    175175        if (rc != EOK) {
    176                 log_msg(LVL_ERROR, "Failed creating callback connection "
     176                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed creating callback connection "
    177177                    "from '%s'", nic->svc_name);
    178178                goto error;
    179179        }
    180180
    181         log_msg(LVL_DEBUG, "Opened NIC '%s'", nic->svc_name);
     181        log_msg(LOG_DEFAULT, LVL_DEBUG, "Opened NIC '%s'", nic->svc_name);
    182182        list_append(&nic->nic_list, &ethip_nic_list);
    183183        in_list = true;
     
    189189        rc = nic_get_address(nic->sess, &nic_address);
    190190        if (rc != EOK) {
    191                 log_msg(LVL_ERROR, "Error getting MAC address of NIC '%s'.",
     191                log_msg(LOG_DEFAULT, LVL_ERROR, "Error getting MAC address of NIC '%s'.",
    192192                    nic->svc_name);
    193193                goto error;
     
    198198        rc = nic_set_state(nic->sess, NIC_STATE_ACTIVE);
    199199        if (rc != EOK) {
    200                 log_msg(LVL_ERROR, "Error activating NIC '%s'.",
     200                log_msg(LOG_DEFAULT, LVL_ERROR, "Error activating NIC '%s'.",
    201201                    nic->svc_name);
    202202                goto error;
    203203        }
    204204
    205         log_msg(LVL_DEBUG, "Initialized IP link service, MAC = 0x%" PRIx64,
     205        log_msg(LOG_DEFAULT, LVL_DEBUG, "Initialized IP link service, MAC = 0x%" PRIx64,
    206206            nic->mac_addr.addr);
    207207
     
    225225    ipc_call_t *call)
    226226{
    227         log_msg(LVL_DEBUG, "ethip_nic_addr_changed()");
     227        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_changed()");
    228228        async_answer_0(callid, ENOTSUP);
    229229}
     
    236236        size_t size;
    237237
    238         log_msg(LVL_DEBUG, "ethip_nic_received() nic=%p", nic);
     238        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_received() nic=%p", nic);
    239239
    240240        rc = async_data_write_accept(&data, false, 0, 0, 0, &size);
    241241        if (rc != EOK) {
    242                 log_msg(LVL_DEBUG, "data_write_accept() failed");
     242                log_msg(LOG_DEFAULT, LVL_DEBUG, "data_write_accept() failed");
    243243                return;
    244244        }
    245245
    246         log_msg(LVL_DEBUG, "Ethernet PDU contents (%zu bytes)",
     246        log_msg(LOG_DEFAULT, LVL_DEBUG, "Ethernet PDU contents (%zu bytes)",
    247247            size);
    248248
    249         log_msg(LVL_DEBUG, "call ethip_received");
     249        log_msg(LOG_DEFAULT, LVL_DEBUG, "call ethip_received");
    250250        rc = ethip_received(&nic->iplink, data, size);
    251         log_msg(LVL_DEBUG, "free data");
     251        log_msg(LOG_DEFAULT, LVL_DEBUG, "free data");
    252252        free(data);
    253253
    254         log_msg(LVL_DEBUG, "ethip_nic_received() done, rc=%d", rc);
     254        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_received() done, rc=%d", rc);
    255255        async_answer_0(callid, rc);
    256256}
     
    259259    ipc_call_t *call)
    260260{
    261         log_msg(LVL_DEBUG, "ethip_nic_device_state()");
     261        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_device_state()");
    262262        async_answer_0(callid, ENOTSUP);
    263263}
     
    267267        ethip_nic_t *nic = (ethip_nic_t *)arg;
    268268
    269         log_msg(LVL_DEBUG, "ethnip_nic_cb_conn()");
     269        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethnip_nic_cb_conn()");
    270270
    271271        while (true) {
     
    298298        int rc = loc_register_cat_change_cb(ethip_nic_cat_change_cb);
    299299        if (rc != EOK) {
    300                 log_msg(LVL_ERROR, "Failed registering callback for NIC "
     300                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering callback for NIC "
    301301                    "discovery (%d).", rc);
    302302                return rc;
     
    308308ethip_nic_t *ethip_nic_find_by_iplink_sid(service_id_t iplink_sid)
    309309{
    310         log_msg(LVL_DEBUG, "ethip_nic_find_by_iplink_sid(%u)",
     310        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_find_by_iplink_sid(%u)",
    311311            (unsigned) iplink_sid);
    312312
    313313        list_foreach(ethip_nic_list, link) {
    314                 log_msg(LVL_DEBUG, "ethip_nic_find_by_iplink_sid - element");
     314                log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_find_by_iplink_sid - element");
    315315                ethip_nic_t *nic = list_get_instance(link, ethip_nic_t,
    316316                    nic_list);
    317317
    318318                if (nic->iplink_sid == iplink_sid) {
    319                         log_msg(LVL_DEBUG, "ethip_nic_find_by_iplink_sid - found %p", nic);
     319                        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_find_by_iplink_sid - found %p", nic);
    320320                        return nic;
    321321                }
    322322        }
    323323
    324         log_msg(LVL_DEBUG, "ethip_nic_find_by_iplink_sid - not found");
     324        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_find_by_iplink_sid - not found");
    325325        return NULL;
    326326}
     
    329329{
    330330        int rc;
    331         log_msg(LVL_DEBUG, "ethip_nic_send(size=%zu)", size);
     331        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_send(size=%zu)", size);
    332332        rc = nic_send_frame(nic->sess, data, size);
    333         log_msg(LVL_DEBUG, "nic_send_frame -> %d", rc);
     333        log_msg(LOG_DEFAULT, LVL_DEBUG, "nic_send_frame -> %d", rc);
    334334        return rc;
    335335}
     
    339339        ethip_link_addr_t *laddr;
    340340
    341         log_msg(LVL_DEBUG, "ethip_nic_addr_add()");
     341        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_add()");
    342342        laddr = ethip_nic_addr_new(addr);
    343343        if (laddr == NULL)
     
    352352        ethip_link_addr_t *laddr;
    353353
    354         log_msg(LVL_DEBUG, "ethip_nic_addr_remove()");
     354        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_remove()");
    355355
    356356        laddr = ethip_nic_addr_find(nic, addr);
     
    366366    iplink_srv_addr_t *addr)
    367367{
    368         log_msg(LVL_DEBUG, "ethip_nic_addr_find()");
     368        log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_find()");
    369369
    370370        list_foreach(nic->addr_list, link) {
  • uspace/srv/net/ethip/pdu.c

    r920d0fc ra1a101d  
    6969            frame->size);
    7070
    71         log_msg(LVL_DEBUG, "Encoding Ethernet frame src=%llx dest=%llx etype=%x",
     71        log_msg(LOG_DEFAULT, LVL_DEBUG, "Encoding Ethernet frame src=%llx dest=%llx etype=%x",
    7272            frame->src, frame->dest, frame->etype_len);
    73         log_msg(LVL_DEBUG, "Encoded Ethernet frame (%zu bytes)", size);
     73        log_msg(LOG_DEFAULT, LVL_DEBUG, "Encoded Ethernet frame (%zu bytes)", size);
    7474
    7575        *rdata = data;
     
    8383        eth_header_t *hdr;
    8484
    85         log_msg(LVL_DEBUG, "eth_pdu_decode()");
     85        log_msg(LOG_DEFAULT, LVL_DEBUG, "eth_pdu_decode()");
    8686
    8787        if (size < sizeof(eth_header_t)) {
    88                 log_msg(LVL_DEBUG, "PDU too short (%zu)", size);
     88                log_msg(LOG_DEFAULT, LVL_DEBUG, "PDU too short (%zu)", size);
    8989                return EINVAL;
    9090        }
     
    104104            frame->size);
    105105
    106         log_msg(LVL_DEBUG, "Decoding Ethernet frame src=%llx dest=%llx etype=%x",
     106        log_msg(LOG_DEFAULT, LVL_DEBUG, "Decoding Ethernet frame src=%llx dest=%llx etype=%x",
    107107            frame->src, frame->dest, frame->etype_len);
    108         log_msg(LVL_DEBUG, "Decoded Ethernet frame payload (%zu bytes)", frame->size);
     108        log_msg(LOG_DEFAULT, LVL_DEBUG, "Decoded Ethernet frame payload (%zu bytes)", frame->size);
    109109
    110110        return EOK;
     
    143143        uint16_t fopcode;
    144144
    145         log_msg(LVL_DEBUG, "arp_pdu_encode()");
     145        log_msg(LOG_DEFAULT, LVL_DEBUG, "arp_pdu_encode()");
    146146
    147147        size = sizeof(arp_eth_packet_fmt_t);
     
    183183        arp_eth_packet_fmt_t *pfmt;
    184184
    185         log_msg(LVL_DEBUG, "arp_pdu_decode()");
     185        log_msg(LOG_DEFAULT, LVL_DEBUG, "arp_pdu_decode()");
    186186
    187187        if (size < sizeof(arp_eth_packet_fmt_t)) {
    188                 log_msg(LVL_DEBUG, "ARP PDU too short (%zu)", size);
     188                log_msg(LOG_DEFAULT, LVL_DEBUG, "ARP PDU too short (%zu)", size);
    189189                return EINVAL;
    190190        }
     
    193193
    194194        if (uint16_t_be2host(pfmt->hw_addr_space) != AHRD_ETHERNET) {
    195                 log_msg(LVL_DEBUG, "HW address space != %u (%" PRIu16 ")",
     195                log_msg(LOG_DEFAULT, LVL_DEBUG, "HW address space != %u (%" PRIu16 ")",
    196196                    AHRD_ETHERNET, uint16_t_be2host(pfmt->hw_addr_space));
    197197                return EINVAL;
     
    199199
    200200        if (uint16_t_be2host(pfmt->proto_addr_space) != 0x0800) {
    201                 log_msg(LVL_DEBUG, "Proto address space != %u (%" PRIu16 ")",
     201                log_msg(LOG_DEFAULT, LVL_DEBUG, "Proto address space != %u (%" PRIu16 ")",
    202202                    ETYPE_IP, uint16_t_be2host(pfmt->proto_addr_space));
    203203                return EINVAL;
     
    205205
    206206        if (pfmt->hw_addr_size != ETH_ADDR_SIZE) {
    207                 log_msg(LVL_DEBUG, "HW address size != %zu (%zu)",
     207                log_msg(LOG_DEFAULT, LVL_DEBUG, "HW address size != %zu (%zu)",
    208208                    (size_t)ETH_ADDR_SIZE, (size_t)pfmt->hw_addr_size);
    209209                return EINVAL;
     
    211211
    212212        if (pfmt->proto_addr_size != IPV4_ADDR_SIZE) {
    213                 log_msg(LVL_DEBUG, "Proto address size != %zu (%zu)",
     213                log_msg(LOG_DEFAULT, LVL_DEBUG, "Proto address size != %zu (%zu)",
    214214                    (size_t)IPV4_ADDR_SIZE, (size_t)pfmt->proto_addr_size);
    215215                return EINVAL;
     
    220220        case AOP_REPLY: packet->opcode = aop_reply; break;
    221221        default:
    222                 log_msg(LVL_DEBUG, "Invalid ARP opcode (%" PRIu16 ")",
     222                log_msg(LOG_DEFAULT, LVL_DEBUG, "Invalid ARP opcode (%" PRIu16 ")",
    223223                    uint16_t_be2host(pfmt->opcode));
    224224                return EINVAL;
     
    231231        packet->target_proto_addr.ipv4 =
    232232            uint32_t_be2host(pfmt->target_proto_addr);
    233         log_msg(LVL_DEBUG, "packet->tpa = %x\n", pfmt->target_proto_addr);
     233        log_msg(LOG_DEFAULT, LVL_DEBUG, "packet->tpa = %x\n", pfmt->target_proto_addr);
    234234
    235235        return EOK;
Note: See TracChangeset for help on using the changeset viewer.