Fix some warnings caused by size_t having varying size.
authorPierre Ossman <ossman@cendio.se>
Fri, 31 Mar 2006 08:54:24 +0000 (08:54 +0000)
committerPierre Ossman <ossman@cendio.se>
Fri, 31 Mar 2006 08:54:24 +0000 (08:54 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@641 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/modules/module-alsa-sink.c
src/modules/module-alsa-source.c
src/polypcore/cli-text.c
src/tests/mcalign-test.c

index 6ace7af..2e9459e 100644 (file)
@@ -405,7 +405,7 @@ int pa__init(pa_core *c, pa_module*m) {
     u->frame_size = frame_size;
     u->fragment_size = period_size;
 
-    pa_log_info(__FILE__": using %u fragments of size %u bytes.", periods, u->fragment_size);
+    pa_log_info(__FILE__": using %u fragments of size %lu bytes.", periods, (long unsigned)u->fragment_size);
 
     u->silence.memblock = pa_memblock_new(u->silence.length = u->fragment_size, c->memblock_stat);
     assert(u->silence.memblock);
index 3343e0b..14b35eb 100644 (file)
@@ -396,7 +396,7 @@ int pa__init(pa_core *c, pa_module*m) {
     u->frame_size = frame_size;
     u->fragment_size = period_size;
 
-    pa_log(__FILE__": using %u fragments of size %u bytes.", periods, u->fragment_size);
+    pa_log(__FILE__": using %u fragments of size %lu bytes.", periods, (long unsigned)u->fragment_size);
 
     u->memchunk.memblock = NULL;
     u->memchunk.index = u->memchunk.length = 0;
index 8bffd0a..d31d09c 100644 (file)
@@ -294,7 +294,7 @@ char *pa_scache_list_to_string(pa_core *c) {
                 "\tindex: <%u>\n"
                 "\tsample spec: <%s>\n"
                 "\tchannel map: <%s>\n"
-                "\tlength: <%u>\n"
+                "\tlength: <%lu>\n"
                 "\tduration: <%0.1fs>\n"
                 "\tvolume: <%s>\n"
                 "\tlazy: %s\n"
@@ -303,7 +303,7 @@ char *pa_scache_list_to_string(pa_core *c) {
                 e->index,
                 ss,
                 cm,
-                e->memchunk.memblock ? e->memchunk.length : 0,
+                (long unsigned)(e->memchunk.memblock ? e->memchunk.length : 0),
                 l,
                 pa_cvolume_snprint(cv, sizeof(cv), &e->volume),
                 e->lazy ? "yes" : "no",
index eab5dc8..2728def 100644 (file)
@@ -67,7 +67,7 @@ int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {
 
         c.length = r;
         pa_mcalign_push(a, &c);
-        fprintf(stderr, "Read %d bytes\n", r);
+        fprintf(stderr, "Read %ld bytes\n", (long)r);
 
         c.index += r;