Changeset e5bc912 in mainline for uspace/app


Ignore:
Timestamp:
2013-08-16T15:16:21Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ac8b096
Parents:
537620a8
Message:

Fix printf compile issues

Location:
uspace/app/wavplay
Files:
2 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;
Note: See TracChangeset for help on using the changeset viewer.