Changeset e5b2777 in mainline for uspace/lib/pcap/src/pcapdump_client.c
- Timestamp:
- 2024-12-13T08:44:05Z (15 months ago)
- Children:
- 31d2aee
- Parents:
- e1e8f7a
- git-author:
- Nataliia Korop <n.corop08@…> (2024-11-17 09:14:10)
- git-committer:
- Nataliia Korop <n.corop08@…> (2024-12-13 08:44:05)
- File:
-
- 1 edited
-
uspace/lib/pcap/src/pcapdump_client.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcap/src/pcapdump_client.c
re1e8f7a re5b2777 61 61 rc = loc_category_get_id("pcap", &pcap_cat, 0); 62 62 if (rc != EOK) { 63 printf("Error resolving category 'pcap'.\n");63 fprintf(stderr, "Error resolving category 'pcap'.\n"); 64 64 return rc; 65 65 } … … 67 67 rc = loc_category_get_svcs(pcap_cat, &pcap_svcs, &count); 68 68 if (rc != EOK) { 69 printf("Error resolving list of pcap services.\n");69 fprintf(stderr, "Error resolving list of pcap services.\n"); 70 70 free(pcap_svcs); 71 71 return rc; … … 89 89 rc = loc_category_get_id("pcap", &pcap_cat, 0); 90 90 if (rc != EOK) { 91 printf("Error resolving category pcap.\n");91 fprintf(stderr, "Error resolving category pcap.\n"); 92 92 return rc; 93 93 } … … 95 95 rc = loc_category_get_svcs(pcap_cat, &pcap_svcs, &count); 96 96 if (rc != EOK) { 97 printf("Error resolving list of pcap services.\n");97 fprintf(stderr, "Error resolving list of pcap services.\n"); 98 98 free(pcap_svcs); 99 99 return rc; … … 141 141 rc = loc_category_get_id("pcap", &pcap_cat, 0); 142 142 if (rc != EOK) { 143 printf("Error resolving category pcap.\n");143 fprintf(stderr, "Error resolving category pcap.\n"); 144 144 return rc; 145 145 } … … 147 147 rc = loc_category_get_svcs(pcap_cat, &pcap_svcs, &count); 148 148 if (rc != EOK) { 149 printf("Error resolving list of pcap services.\n");149 fprintf(stderr, "Error resolving list of pcap services.\n"); 150 150 free(pcap_svcs); 151 151 return rc; … … 179 179 rc = pcapctl_cat_get_svc(index, &svc); 180 180 if (rc != EOK) { 181 printf("Error finding the device with index: %d\n", *index);181 fprintf(stderr, "Error finding the device with index: %d\n", *index); 182 182 goto error; 183 183 }
Note:
See TracChangeset
for help on using the changeset viewer.
