aboutsummaryrefslogtreecommitdiff
path: root/tinycap.c
diff options
context:
space:
mode:
authorSimon Wilson <ksattic@gmail.com>2016-02-14 14:48:31 -0800
committerSimon Wilson <ksattic@gmail.com>2016-02-14 14:48:31 -0800
commit2474d888d77882a84e322867d8f14906bd74b5fe (patch)
treecccf281e1fe1b1bd8d5db8a16ad83927de6f7780 /tinycap.c
parentad66b45add9677c4a732fc3a020f7b5d19c38def (diff)
parent9d3cdd0ebfcd827881e3e3f723c7405701679a21 (diff)
Merge pull request #72 from frgm/cppcheck
fix some cppcheck warnings
Diffstat (limited to 'tinycap.c')
-rw-r--r--tinycap.c6
1 files changed, 3 insertions, 3 deletions
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;