Changeset fc338e0 in mainline


Ignore:
Timestamp:
2017-12-18T10:34:37Z (6 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41ebc36
Parents:
25935f1e
Message:

tmon: list command actually prints something

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/list.c

    r25935f1e rfc338e0  
    4242
    4343#define NAME "tmon"
     44#define MAX_PATH_LENGTH 1024
    4445
    4546static void print_list_item(service_id_t svc)
     
    5354        }
    5455
    55         // FIXME: print something
     56        char path[MAX_PATH_LENGTH];
     57        if ((rc = devman_fun_get_path(diag_handle, path, sizeof(path)))) {
     58                printf(NAME ": Error resolving path of device with SID %ld, skipping.\n", svc);
     59                return;
     60        }
     61
     62        printf("%s\n", path);
    5663}
    5764
Note: See TracChangeset for help on using the changeset viewer.