summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/buffering.c6
-rw-r--r--apps/playback.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index dc2478ac4c..24643be991 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -565,7 +565,7 @@ static bool buffer_handle(int handle_id)
565 (unsigned)((void *)h->next - (void *)buffer)); 565 (unsigned)((void *)h->next - (void *)buffer));
566 h->filerem -= copy_n; 566 h->filerem -= copy_n;
567 h->filesize -= copy_n; 567 h->filesize -= copy_n;
568 logf("buf alloc short %ld",copy_n); 568 logf("buf alloc short %ld", (long)copy_n);
569 if (h->filerem) 569 if (h->filerem)
570 continue; 570 continue;
571 else 571 else
@@ -1106,7 +1106,7 @@ size_t buf_used(void)
1106 1106
1107void buf_set_watermark(size_t bytes) 1107void buf_set_watermark(size_t bytes)
1108{ 1108{
1109 LOGFQUEUE("buffering > Q_SET_WATERMARK %ld", bytes); 1109 LOGFQUEUE("buffering > Q_SET_WATERMARK %ld", (long)bytes);
1110 queue_post(&buffering_queue, Q_SET_WATERMARK, bytes); 1110 queue_post(&buffering_queue, Q_SET_WATERMARK, bytes);
1111} 1111}
1112 1112
@@ -1222,7 +1222,7 @@ void buffering_thread(void)
1222 if (conf_watermark < BUFFERING_DEFAULT_FILECHUNK) 1222 if (conf_watermark < BUFFERING_DEFAULT_FILECHUNK)
1223 { 1223 {
1224 logf("wmark<chunk %ld<%d", 1224 logf("wmark<chunk %ld<%d",
1225 conf_watermark, BUFFERING_DEFAULT_FILECHUNK); 1225 (long)conf_watermark, BUFFERING_DEFAULT_FILECHUNK);
1226 conf_watermark = BUFFERING_DEFAULT_FILECHUNK; 1226 conf_watermark = BUFFERING_DEFAULT_FILECHUNK;
1227 } 1227 }
1228 break; 1228 break;
diff --git a/apps/playback.c b/apps/playback.c
index 94a0430872..422eab9b74 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -846,7 +846,7 @@ void audio_set_buffer_margin(int setting)
846{ 846{
847 static const int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600}; 847 static const int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600};
848 buffer_margin = lookup[setting]; 848 buffer_margin = lookup[setting];
849 logf("buffer margin: %ld", buffer_margin); 849 logf("buffer margin: %ld", (long)buffer_margin);
850 set_filebuf_watermark(buffer_margin, 0); 850 set_filebuf_watermark(buffer_margin, 0);
851} 851}
852#endif 852#endif