Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e5bc912 in mainline


Ignore:
Timestamp:
2013-08-16T15:16:21Z (7 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
master
Children:
ac8b096
Parents:
537620a8
Message:

Fix printf compile issues

Location:
uspace
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/wavplay/dplay.c

    r537620a8 re5bc912  
    4343#include <sys/mman.h>
    4444#include <sys/time.h>
     45#include <inttypes.h>
    4546
    4647#include <stdio.h>
     
    104105                case PCM_EVENT_PLAYBACK_STARTED:
    105106                case PCM_EVENT_FRAMES_PLAYED:
    106                         printf("%u frames: ", IPC_GET_ARG1(call));
     107                        printf("%" PRIun " frames: ", IPC_GET_ARG1(call));
    107108                        async_answer_0(callid, EOK);
    108109                        break;
     
    116117                        return;
    117118                default:
    118                         printf("Unknown event %d.\n", IPC_GET_IMETHOD(call));
     119                        printf("Unknown event %" PRIun ".\n", IPC_GET_IMETHOD(call));
    119120                        async_answer_0(callid, ENOTSUP);
    120121                        continue;
  • uspace/app/wavplay/drec.c

    r537620a8 re5bc912  
    4141#include <stdio.h>
    4242#include <sys/mman.h>
     43#include <inttypes.h>
    4344
    4445#include "wave.h"
     
    103104                        record = false;
    104105                case PCM_EVENT_FRAMES_CAPTURED:
    105                         printf("%u frames\n", IPC_GET_ARG1(call));
     106                        printf("%" PRIun " frames\n", IPC_GET_ARG1(call));
    106107                        async_answer_0(callid, EOK);
    107108                        break;
    108109                default:
    109                         printf("Unknown event %d.\n", IPC_GET_IMETHOD(call));
     110                        printf("Unknown event %" PRIun ".\n", IPC_GET_IMETHOD(call));
    110111                        async_answer_0(callid, ENOTSUP);
    111112                        continue;
  • uspace/drv/bus/isa/i8237.c

    r537620a8 re5bc912  
    476476        /* Low byte */
    477477        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.",
    479479            dma_channel.size_reg_address, value_low);
    480480       
    481481        /* High byte */
    482482        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.",
    484484            dma_channel.size_reg_address, value_high);
    485485        fibril_mutex_unlock(&guard);
  • uspace/lib/hound/src/client.c

    r537620a8 re5bc912  
    3636#include <adt/list.h>
    3737#include <errno.h>
     38#include <inttypes.h>
    3839#include <loc.h>
    3940#include <str.h>
     
    103104        if (new_context) {
    104105                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);
    106108                if (ret < 0) {
    107109                        free(new_context);
  • uspace/srv/audio/hound/audio_device.c

    r537620a8 re5bc912  
    3838#include <async.h>
    3939#include <errno.h>
     40#include <inttypes.h>
    4041#include <loc.h>
    4142#include <str.h>
     
    9394        dev->buffer.fragment_size = 0;
    9495
    95         log_verbose("Initialized device (%p) '%s' with id %u.",
     96        log_verbose("Initialized device (%p) '%s' with id %" PRIun ".",
    9697            dev, dev->name, dev->id);
    9798
  • uspace/srv/audio/hound/hound_ctx.c

    r537620a8 re5bc912  
    413413                return ENOMEM;
    414414        }
    415         log_verbose("CTX: %p. Mixing %zu streams", ctx,
     415        log_verbose("CTX: %p: Mixing %u streams", ctx,
    416416            list_count(&ctx->streams));
    417417        pcm_format_silence(buffer, size, &source->format);
     
    424424                        log_warning("Not enough data in stream buffer");
    425425        }
    426         log_verbose("CTX: %p. Pushing audio to %zu connections", ctx,
     426        log_verbose("CTX: %p. Pushing audio to %u connections", ctx,
    427427            list_count(&source->connections));
    428428        list_foreach(source->connections, it) {
  • uspace/srv/audio/hound/iface.c

    r537620a8 re5bc912  
    3737#include <errno.h>
    3838#include <hound/protocol.h>
     39#include <inttypes.h>
    3940#include <malloc.h>
    4041
     
    7374                return ret;
    7475        hound_ctx_destroy(ctx);
    75         log_info("%s: %p, %#x", __FUNCTION__, server, id);
     76        log_info("%s: %p, %#" PRIxn, __FUNCTION__, server, id);
    7677        return EOK;
    7778}
     
    116117        assert(server);
    117118
    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,
    120121            pcm_sample_format_str(format.sample_format));
    121122        hound_ctx_t *ctx = hound_get_ctx_by_id(server, id);
  • uspace/srv/audio/hound/main.c

    r537620a8 re5bc912  
    3737#include <async.h>
    3838#include <errno.h>
     39#include <inttypes.h>
    3940#include <stdio.h>
    4041#include <stdlib.h>
     
    9495                return -ret;
    9596        }
    96         log_info("Running with service id %u", id);
     97        log_info("Running with service id %" PRIun, id);
    9798
    9899        scan_for_devices();
Note: See TracChangeset for help on using the changeset viewer.