Changeset e5bc912 in mainline
- Timestamp:
- 2013-08-16T15:16:21Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ac8b096
- Parents:
- 537620a8
- Location:
- uspace
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/dplay.c
r537620a8 re5bc912 43 43 #include <sys/mman.h> 44 44 #include <sys/time.h> 45 #include <inttypes.h> 45 46 46 47 #include <stdio.h> … … 104 105 case PCM_EVENT_PLAYBACK_STARTED: 105 106 case PCM_EVENT_FRAMES_PLAYED: 106 printf("% uframes: ", IPC_GET_ARG1(call));107 printf("%" PRIun " frames: ", IPC_GET_ARG1(call)); 107 108 async_answer_0(callid, EOK); 108 109 break; … … 116 117 return; 117 118 default: 118 printf("Unknown event % d.\n", IPC_GET_IMETHOD(call));119 printf("Unknown event %" PRIun ".\n", IPC_GET_IMETHOD(call)); 119 120 async_answer_0(callid, ENOTSUP); 120 121 continue; -
uspace/app/wavplay/drec.c
r537620a8 re5bc912 41 41 #include <stdio.h> 42 42 #include <sys/mman.h> 43 #include <inttypes.h> 43 44 44 45 #include "wave.h" … … 103 104 record = false; 104 105 case PCM_EVENT_FRAMES_CAPTURED: 105 printf("% uframes\n", IPC_GET_ARG1(call));106 printf("%" PRIun " frames\n", IPC_GET_ARG1(call)); 106 107 async_answer_0(callid, EOK); 107 108 break; 108 109 default: 109 printf("Unknown event % d.\n", IPC_GET_IMETHOD(call));110 printf("Unknown event %" PRIun ".\n", IPC_GET_IMETHOD(call)); 110 111 async_answer_0(callid, ENOTSUP); 111 112 continue; -
uspace/drv/bus/isa/i8237.c
r537620a8 re5bc912 476 476 /* Low byte */ 477 477 const uint8_t value_low = pio_read_8(dma_channel.size_reg_address); 478 ddf_msg(LVL_DEBUG2, "Read size low byte: %p:% zx.",478 ddf_msg(LVL_DEBUG2, "Read size low byte: %p:%x.", 479 479 dma_channel.size_reg_address, value_low); 480 480 481 481 /* High byte */ 482 482 const uint8_t value_high = pio_read_8(dma_channel.size_reg_address); 483 ddf_msg(LVL_DEBUG2, "Read size high byte: %p:% zx.",483 ddf_msg(LVL_DEBUG2, "Read size high byte: %p:%x.", 484 484 dma_channel.size_reg_address, value_high); 485 485 fibril_mutex_unlock(&guard); -
uspace/lib/hound/src/client.c
r537620a8 re5bc912 36 36 #include <adt/list.h> 37 37 #include <errno.h> 38 #include <inttypes.h> 38 39 #include <loc.h> 39 40 #include <str.h> … … 103 104 if (new_context) { 104 105 char *cont_name; 105 int ret = asprintf(&cont_name, "%llu:%s", task_get_id(), name); 106 int ret = asprintf(&cont_name, "%" PRIu64 ":%s", 107 task_get_id(), name); 106 108 if (ret < 0) { 107 109 free(new_context); -
uspace/srv/audio/hound/audio_device.c
r537620a8 re5bc912 38 38 #include <async.h> 39 39 #include <errno.h> 40 #include <inttypes.h> 40 41 #include <loc.h> 41 42 #include <str.h> … … 93 94 dev->buffer.fragment_size = 0; 94 95 95 log_verbose("Initialized device (%p) '%s' with id % u.",96 log_verbose("Initialized device (%p) '%s' with id %" PRIun ".", 96 97 dev, dev->name, dev->id); 97 98 -
uspace/srv/audio/hound/hound_ctx.c
r537620a8 re5bc912 413 413 return ENOMEM; 414 414 } 415 log_verbose("CTX: %p . Mixing %zu streams", ctx,415 log_verbose("CTX: %p: Mixing %u streams", ctx, 416 416 list_count(&ctx->streams)); 417 417 pcm_format_silence(buffer, size, &source->format); … … 424 424 log_warning("Not enough data in stream buffer"); 425 425 } 426 log_verbose("CTX: %p. Pushing audio to % zu connections", ctx,426 log_verbose("CTX: %p. Pushing audio to %u connections", ctx, 427 427 list_count(&source->connections)); 428 428 list_foreach(source->connections, it) { -
uspace/srv/audio/hound/iface.c
r537620a8 re5bc912 37 37 #include <errno.h> 38 38 #include <hound/protocol.h> 39 #include <inttypes.h> 39 40 #include <malloc.h> 40 41 … … 73 74 return ret; 74 75 hound_ctx_destroy(ctx); 75 log_info("%s: %p, %# x", __FUNCTION__, server, id);76 log_info("%s: %p, %#" PRIxn, __FUNCTION__, server, id); 76 77 return EOK; 77 78 } … … 116 117 assert(server); 117 118 118 log_verbose("%s: %p, % d %x ch:%u r:%u f:%s", __FUNCTION__, server, id,119 flags, format.channels, format.sampling_rate,119 log_verbose("%s: %p, %" PRIxn " %x ch:%u r:%u f:%s", __FUNCTION__, 120 server, id, flags, format.channels, format.sampling_rate, 120 121 pcm_sample_format_str(format.sample_format)); 121 122 hound_ctx_t *ctx = hound_get_ctx_by_id(server, id); -
uspace/srv/audio/hound/main.c
r537620a8 re5bc912 37 37 #include <async.h> 38 38 #include <errno.h> 39 #include <inttypes.h> 39 40 #include <stdio.h> 40 41 #include <stdlib.h> … … 94 95 return -ret; 95 96 } 96 log_info("Running with service id % u", id);97 log_info("Running with service id %" PRIun, id); 97 98 98 99 scan_for_devices();
Note:
See TracChangeset
for help on using the changeset viewer.