diff options
Diffstat (limited to 'tinycap.c')
-rw-r--r-- | tinycap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |