Ignore:
Timestamp:
2024-12-13T08:44:05Z (15 months ago)
Author:
Nataliia Korop <n.corop08@…>
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)
Message:

create drv iface for drivers

File:
1 edited

Legend:

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

    re1e8f7a re5b2777  
    6161        rc = loc_category_get_id("pcap", &pcap_cat, 0);
    6262        if (rc != EOK) {
    63                 printf("Error resolving category 'pcap'.\n");
     63                fprintf(stderr, "Error resolving category 'pcap'.\n");
    6464                return rc;
    6565        }
     
    6767        rc = loc_category_get_svcs(pcap_cat, &pcap_svcs, &count);
    6868        if (rc != EOK) {
    69                 printf("Error resolving list of pcap services.\n");
     69                fprintf(stderr, "Error resolving list of pcap services.\n");
    7070                free(pcap_svcs);
    7171                return rc;
     
    8989        rc = loc_category_get_id("pcap", &pcap_cat, 0);
    9090        if (rc != EOK) {
    91                 printf("Error resolving category pcap.\n");
     91                fprintf(stderr, "Error resolving category pcap.\n");
    9292                return rc;
    9393        }
     
    9595        rc = loc_category_get_svcs(pcap_cat, &pcap_svcs, &count);
    9696        if (rc != EOK) {
    97                 printf("Error resolving list of pcap services.\n");
     97                fprintf(stderr, "Error resolving list of pcap services.\n");
    9898                free(pcap_svcs);
    9999                return rc;
     
    141141        rc = loc_category_get_id("pcap", &pcap_cat, 0);
    142142        if (rc != EOK) {
    143                 printf("Error resolving category pcap.\n");
     143                fprintf(stderr, "Error resolving category pcap.\n");
    144144                return rc;
    145145        }
     
    147147        rc = loc_category_get_svcs(pcap_cat, &pcap_svcs, &count);
    148148        if (rc != EOK) {
    149                 printf("Error resolving list of pcap services.\n");
     149                fprintf(stderr, "Error resolving list of pcap services.\n");
    150150                free(pcap_svcs);
    151151                return rc;
     
    179179        rc  = pcapctl_cat_get_svc(index, &svc);
    180180        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);
    182182                goto error;
    183183        }
Note: See TracChangeset for help on using the changeset viewer.