]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Printf unsigned long with %lu instead of %li (latency.c)
authorQuipyowert2 <38995150+Quipyowert2@users.noreply.github.com>
Sun, 17 Feb 2019 12:39:32 +0000 (04:39 -0800)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Apr 2019 08:27:36 +0000 (10:27 +0200)
Signed-off-by: Nathan Mills <the.true.nathan.mills@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
test/latency.c

index ddd5a7af52812c1af099ec5d468c94bfc9f6ec4d..298bab8ad8ff31108cbb25e87556094a188b8d70 100644 (file)
@@ -587,7 +587,7 @@ int main(int argc, char *argv[])
        printf("Capture device is %s\n", cdevice);
        printf("Parameters are %iHz, %s, %i channels, %s mode\n", rate, snd_pcm_format_name(format), channels, block ? "blocking" : "non-blocking");
        printf("Poll mode: %s\n", use_poll ? "yes" : "no");
-       printf("Loop limit is %li frames, minimum latency = %i, maximum latency = %i\n", loop_limit, latency_min * 2, latency_max * 2);
+       printf("Loop limit is %lu frames, minimum latency = %i, maximum latency = %i\n", loop_limit, latency_min * 2, latency_max * 2);
 
        if ((err = snd_pcm_open(&phandle, pdevice, SND_PCM_STREAM_PLAYBACK, block ? 0 : SND_PCM_NONBLOCK)) < 0) {
                printf("Playback open error: %s\n", snd_strerror(err));