Changeset 467d2b9 in mainline for uspace/lib/pcap/src/pcapdump_srv.c


Ignore:
Timestamp:
2024-12-13T08:44:05Z (14 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
e1e8f7a
Parents:
f161ce1
git-author:
Nataliia Korop <n.corop08@…> (2024-11-10 18:34:17)
git-committer:
Nataliia Korop <n.corop08@…> (2024-12-13 08:44:05)
Message:

logger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcap/src/pcapdump_srv.c

    rf161ce1 r467d2b9  
    4141#include <fibril_synch.h>
    4242#include <str.h>
     43#include <io/log.h>
    4344
    4445#include "pcapdump_srv.h"
     
    5960        free(data);
    6061        if (rc != EOK) {
    61                 //TODO what?
     62                log_msg(LOG_DEFAULT, LVL_DEBUG, "Starting the dumping was not successful.\n");
    6263        }
    6364        async_answer_0(icall, EOK);
     
    8586        free(data);
    8687        if (rc != EOK) {
    87                 //TODO what?
     88                log_msg(LOG_DEFAULT, LVL_DEBUG, "Setting ops for dumper was not successful.\n");
    8889        }
     90
     91        log_msg(LOG_DEFAULT, LVL_NOTE, "Setting ops for dumper was successful.\n");
     92
    8993        async_answer_0(icall, EOK);
    90 
    9194}
    9295
     
    134137
    135138        if (rc != EOK) {
    136                 printf("Failed creating pcap interface: %s", str_error(rc));
     139                log_msg(LOG_DEFAULT, LVL_DEBUG, "Failed creating pcap interface: %s", str_error(rc));
    137140                return rc;
    138141        }
    139142
    140         rc = async_create_port(INTERFACE_PCAP_CONTROL,
    141             pcapdump_conn, dumper, &port);
     143        rc = async_create_port(INTERFACE_PCAP_CONTROL, pcapdump_conn, dumper, &port);
    142144        if (rc != EOK) {
     145                log_msg(LOG_DEFAULT, LVL_DEBUG, "Failed creating port: %s", str_error(rc));
    143146                return rc;
    144147        }
Note: See TracChangeset for help on using the changeset viewer.