diff options
-rw-r--r-- | apps/buffering.c | 6 | ||||
-rw-r--r-- | apps/playback.c | 2 |
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) (unsigned)((void *)h->next - (void *)buffer)); h->filerem -= copy_n; h->filesize -= copy_n; - logf("buf alloc short %ld",copy_n); + logf("buf alloc short %ld", (long)copy_n); if (h->filerem) continue; else @@ -1106,7 +1106,7 @@ size_t buf_used(void) void buf_set_watermark(size_t bytes) { - LOGFQUEUE("buffering > Q_SET_WATERMARK %ld", bytes); + LOGFQUEUE("buffering > Q_SET_WATERMARK %ld", (long)bytes); queue_post(&buffering_queue, Q_SET_WATERMARK, bytes); } @@ -1222,7 +1222,7 @@ void buffering_thread(void) if (conf_watermark < BUFFERING_DEFAULT_FILECHUNK) { logf("wmark<chunk %ld<%d", - conf_watermark, BUFFERING_DEFAULT_FILECHUNK); + (long)conf_watermark, BUFFERING_DEFAULT_FILECHUNK); conf_watermark = BUFFERING_DEFAULT_FILECHUNK; } 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) { static const int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600}; buffer_margin = lookup[setting]; - logf("buffer margin: %ld", buffer_margin); + logf("buffer margin: %ld", (long)buffer_margin); set_filebuf_watermark(buffer_margin, 0); } #endif |