Changeset 80f7c54 in mainline for uspace/app
- Timestamp:
- 2018-01-27T14:37:17Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf0398c
- Parents:
- 77733a9
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-27 14:37:07)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-27 14:37:17)
- Location:
- uspace/app/tmon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tmon/burst_tests.c
r77733a9 r80f7c54 128 128 /** Static array of units with decreasing factors. */ 129 129 static const tmon_unit_t units[] = { 130 { .prefix = 'E', .factor = 1ul<< 60 },131 { .prefix = 'P', .factor = 1ul<< 50 },132 { .prefix = 'T', .factor = 1ul<< 40 },133 { .prefix = 'G', .factor = 1ul<< 30 },134 { .prefix = 'M', .factor = 1ul<< 20 },135 { .prefix = 'k', .factor = 1ul<< 10 }130 { .prefix = 'E', .factor = ((uint64_t) 1) << 60 }, 131 { .prefix = 'P', .factor = ((uint64_t) 1) << 50 }, 132 { .prefix = 'T', .factor = ((uint64_t) 1) << 40 }, 133 { .prefix = 'G', .factor = ((uint64_t) 1) << 30 }, 134 { .prefix = 'M', .factor = ((uint64_t) 1) << 20 }, 135 { .prefix = 'k', .factor = ((uint64_t) 1) << 10 } 136 136 }; 137 137 -
uspace/app/tmon/list.c
r77733a9 r80f7c54 53 53 54 54 if ((rc = devman_fun_sid_to_handle(svc, &diag_handle))) { 55 printf(NAME ": Error resolving handle of device with SID % ld, skipping.\n", svc);55 printf(NAME ": Error resolving handle of device with SID %" PRIun ", skipping.\n", svc); 56 56 return; 57 57 } … … 59 59 char path[MAX_PATH_LENGTH]; 60 60 if ((rc = devman_fun_get_path(diag_handle, path, sizeof(path)))) { 61 printf(NAME ": Error resolving path of device with SID % ld, skipping.\n", svc);61 printf(NAME ": Error resolving path of device with SID %" PRIun ", skipping.\n", svc); 62 62 return; 63 63 } -
uspace/app/tmon/resolve.c
r77733a9 r80f7c54 69 69 if (count != 1) { 70 70 if (count) { 71 printf(NAME ": Found % lddevices. Please specify which to use.\n", count);71 printf(NAME ": Found %zu devices. Please specify which to use.\n", count); 72 72 } else { 73 73 printf(NAME ": No diagnostic devices found.\n"); … … 77 77 78 78 if ((rc = devman_fun_sid_to_handle(svcs[0], fun))) { 79 printf(NAME ": Error resolving handle of device with SID %ld.\n", svcs[0]); 79 printf(NAME ": Error resolving handle of device with " 80 "SID %" PRIun ".\n", svcs[0]); 80 81 return rc; 81 82 } -
uspace/app/tmon/tf.c
r77733a9 r80f7c54 69 69 char path[MAX_PATH_LENGTH]; 70 70 if ((rc = devman_fun_get_path(fun, path, sizeof(path)))) { 71 printf(NAME ": Error resolving path of device with handle %ld. %s\n", fun, str_error(rc)); 71 printf(NAME ": Error resolving path of device with handle " 72 "%" PRIun ". %s\n", fun, str_error(rc)); 72 73 return 1; 73 74 }
Note:
See TracChangeset
for help on using the changeset viewer.
