Changeset 80f7c54 in mainline
- Timestamp:
- 2018-01-27T14:37:17Z (7 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
- Files:
-
- 6 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 } -
uspace/drv/bus/usb/usbdiag/tests.c
r77733a9 r80f7c54 187 187 for (size_t i = 0; i < size; i += sizeof(test_data)) { 188 188 if (*(uint32_t *)(buffer + i) != test_data) { 189 usb_log_error("Read of %s IN endpoint returned invald data at address %lu.", usb_str_transfer_type(pipe->desc.transfer_type), i); 189 usb_log_error("Read of %s IN endpoint returned " 190 "invald data at address %zu.", 191 usb_str_transfer_type(pipe->desc.transfer_type), i); 190 192 rc = EINVAL; 191 193 break; -
uspace/drv/bus/usb/xhci/isoch.c
r77733a9 r80f7c54 319 319 case WINDOW_TOO_SOON: { 320 320 const suseconds_t delay = wd.offset * 125; 321 usb_log_debug("[isoch] delaying feeding buffer % lu for %ldus",321 usb_log_debug("[isoch] delaying feeding buffer %zu for %ldus", 322 322 it - isoch->transfers, delay); 323 323 fibril_timer_set_locked(isoch->feeding_timer, delay, … … 327 327 328 328 case WINDOW_INSIDE: 329 usb_log_debug("[isoch] feeding buffer % lu at 0x%llx",329 usb_log_debug("[isoch] feeding buffer %zu at 0x%llx", 330 330 it - isoch->transfers, it->mfindex); 331 331 it->error = schedule_isochronous_trb(ep, it); … … 345 345 * skipped. 346 346 */ 347 usb_log_debug("[isoch] missed feeding buffer % lu at 0x%llx by "347 usb_log_debug("[isoch] missed feeding buffer %zu at 0x%llx by " 348 348 "%llu uframes", it - isoch->transfers, it->mfindex, wd.offset); 349 349 it->state = ISOCH_COMPLETE; … … 411 411 /* Not allowed to feed yet. Defer to later. */ 412 412 const suseconds_t delay = wd.offset * 125; 413 usb_log_debug("[isoch] delaying feeding buffer % lu for %ldus",413 usb_log_debug("[isoch] delaying feeding buffer %zu for %ldus", 414 414 it - isoch->transfers, delay); 415 415 fibril_timer_set_locked(isoch->feeding_timer, delay, … … 419 419 420 420 case WINDOW_TOO_LATE: 421 usb_log_debug("[isoch] missed feeding buffer % lu at 0x%llx by"421 usb_log_debug("[isoch] missed feeding buffer %zu at 0x%llx by" 422 422 "%llu uframes", it - isoch->transfers, it->mfindex, wd.offset); 423 423 /* Missed the opportunity to schedule. Schedule ASAP. */ … … 432 432 isoch->last_mf = it->mfindex; 433 433 434 usb_log_debug("[isoch] feeding buffer % lu at 0x%llx",434 usb_log_debug("[isoch] feeding buffer %zu at 0x%llx", 435 435 it - isoch->transfers, it->mfindex); 436 436
Note:
See TracChangeset
for help on using the changeset viewer.