From 9d3cdd0ebfcd827881e3e3f723c7405701679a21 Mon Sep 17 00:00:00 2001 From: Svyatoslav Mishyn Date: Sun, 24 Jan 2016 20:06:48 +0200 Subject: fix format specifier for unsigned int --- tinycap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tinycap.c') diff --git a/tinycap.c b/tinycap.c index 180a2dd..ffccb18 100644 --- a/tinycap.c +++ b/tinycap.c @@ -159,7 +159,7 @@ int main(int argc, char **argv) format = PCM_FORMAT_S16_LE; break; default: - fprintf(stderr, "%d bits is not supported.\n", bits); + fprintf(stderr, "%u bits is not supported.\n", bits); return 1; } @@ -179,7 +179,7 @@ int main(int argc, char **argv) header.sample_rate, format, period_size, period_count); if (prinfo) { - printf("Captured %d frames\n", frames); + printf("Captured %u frames\n", frames); } /* write header now all information is known */ @@ -226,7 +226,7 @@ unsigned int capture_sample(FILE *file, unsigned int card, unsigned int device, size = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); buffer = malloc(size); if (!buffer) { - fprintf(stderr, "Unable to allocate %d bytes\n", size); + fprintf(stderr, "Unable to allocate %u bytes\n", size); free(buffer); pcm_close(pcm); return 0; -- cgit v1.2.3