Changeset 467d2b9 in mainline for uspace/lib/pcap/src/pcapdump_srv.c
- Timestamp:
- 2024-12-13T08:44:05Z (14 months ago)
- 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)
- File:
-
- 1 edited
-
uspace/lib/pcap/src/pcapdump_srv.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcap/src/pcapdump_srv.c
rf161ce1 r467d2b9 41 41 #include <fibril_synch.h> 42 42 #include <str.h> 43 #include <io/log.h> 43 44 44 45 #include "pcapdump_srv.h" … … 59 60 free(data); 60 61 if (rc != EOK) { 61 //TODO what?62 log_msg(LOG_DEFAULT, LVL_DEBUG, "Starting the dumping was not successful.\n"); 62 63 } 63 64 async_answer_0(icall, EOK); … … 85 86 free(data); 86 87 if (rc != EOK) { 87 //TODO what?88 log_msg(LOG_DEFAULT, LVL_DEBUG, "Setting ops for dumper was not successful.\n"); 88 89 } 90 91 log_msg(LOG_DEFAULT, LVL_NOTE, "Setting ops for dumper was successful.\n"); 92 89 93 async_answer_0(icall, EOK); 90 91 94 } 92 95 … … 134 137 135 138 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)); 137 140 return rc; 138 141 } 139 142 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); 142 144 if (rc != EOK) { 145 log_msg(LOG_DEFAULT, LVL_DEBUG, "Failed creating port: %s", str_error(rc)); 143 146 return rc; 144 147 }
Note:
See TracChangeset
for help on using the changeset viewer.
