Changes in uspace/app/loc/loc.c [75b9c3d:4e7637a] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/loc/loc.c

    r75b9c3d r4e7637a  
    4848        size_t svc_cnt;
    4949        char *svc_name;
    50         char *server_name;
    5150        int rc;
    5251        size_t j;
    5352
    54         printf("%s:\n", cat_name);
     53        printf("%s (%" PRIun "):\n", cat_name, cat_id);
    5554
    5655        rc = loc_category_get_svcs(cat_id, &svc_ids, &svc_cnt);
     
    6867                        continue;
    6968                }
    70 
    71                 rc = loc_service_get_server_name(svc_ids[j], &server_name);
    72                 if (rc != EOK && rc != EINVAL) {
    73                         free(svc_name);
    74                         printf(NAME ": Unknown service name (SID %"
    75                             PRIun ").\n", svc_ids[j]);
    76                         continue;
    77                 }
    78 
    79                 if (rc == EOK)
    80                         printf("\t%s : %s\n", svc_name, server_name);
    81                 else
    82                         printf("\t%s\n", svc_name);
    83        
     69                printf("\t%s (%" PRIun ")\n", svc_name, svc_ids[j]);
    8470                free(svc_name);
    85                 free(server_name);
    8671        }
    8772
Note: See TracChangeset for help on using the changeset viewer.