diff options
author | Simon Wilson <ksattic@gmail.com> | 2016-02-14 14:48:31 -0800 |
---|---|---|
committer | Simon Wilson <ksattic@gmail.com> | 2016-02-14 14:48:31 -0800 |
commit | 2474d888d77882a84e322867d8f14906bd74b5fe (patch) | |
tree | cccf281e1fe1b1bd8d5db8a16ad83927de6f7780 /tinycap.c | |
parent | ad66b45add9677c4a732fc3a020f7b5d19c38def (diff) | |
parent | 9d3cdd0ebfcd827881e3e3f723c7405701679a21 (diff) |
Merge pull request #72 from frgm/cppcheck
fix some cppcheck warnings
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; |