summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2014-08-13 00:21:04 +0200
committerPeter Meerwald <pmeerw@pmeerw.net>2014-08-18 15:31:19 +0200
commit1849cfdad92cb56f5510f46405c98caa9e6b7577 (patch)
treecc59d2020763274ff421a3a53d11d8d5bb6f2ae7 /src/tests
parent8d2d7da5e602de75ddf241cdc41a03f9d30ad8ab (diff)
misc: Fix format specifiers
to print a pa_usec_t, the format specifier to use is "%" PRIu64 modules/module-combine-sink.c: In function 'update_latency_range': modules/module-combine-sink.c:750:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'pa_usec_t' [-Wformat] modules/module-combine-sink.c:750:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'pa_usec_t' [-Wformat] to print a size_t, use %zu Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/mcalign-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/mcalign-test.c b/src/tests/mcalign-test.c
index bd192b5ba..443b4a7b6 100644
--- a/src/tests/mcalign-test.c
+++ b/src/tests/mcalign-test.c
@@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
c.length = (size_t) r;
pa_mcalign_push(a, &c);
- fprintf(stderr, "Read %ld bytes\n", (long)r);
+ fprintf(stderr, "Read %zd bytes\n", r);
c.index += (size_t) r;