From edcf850aaf585da2bd0d27ceb7824100b4154214 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 19 May 2023 05:50:35 +0200 Subject: [PATCH] Fix Wformat --- libs/backends/alsa/alsa_slave.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/backends/alsa/alsa_slave.cc b/libs/backends/alsa/alsa_slave.cc index d5f2f6d952..bc8a1bfd15 100644 --- a/libs/backends/alsa/alsa_slave.cc +++ b/libs/backends/alsa/alsa_slave.cc @@ -323,7 +323,7 @@ AlsaAudioSlave::process_thread () } else { if (!drain) { #ifndef NDEBUG - printf ("Slave Process: Playback Buffer Underflow, have %u want %lu\n", _rb_playback.read_space (), _pcmi.nplay () * spp); // XXX DEBUG + printf ("Slave Process: Playback Buffer Underflow, have %zu want %lu\n", _rb_playback.read_space (), _pcmi.nplay () * spp); // XXX DEBUG #endif _play_latency += spp * _ratio; update_latencies (_play_latency, _capt_latency); @@ -391,7 +391,7 @@ AlsaAudioSlave::cycle_start (double tme, double mst_speed, bool drain) const double rratio = _ratio * mst_speed / slave_speed; if (_rb_capture.read_space() < ceil (nchn * _samples_per_period / rratio)) { #ifndef NDEBUG - printf ("--- UNDERFLOW --- have %u want %.1f\n", _rb_capture.read_space(), ceil (nchn * _samples_per_period / rratio)); // XXX DEBUG + printf ("--- UNDERFLOW --- have %zu want %.1f\n", _rb_capture.read_space(), ceil (nchn * _samples_per_period / rratio)); // XXX DEBUG #endif _capt_latency += _samples_per_period; update_latencies (_play_latency, _capt_latency);