From 140200d77d11ad4dcdd993625fc8d00a644b9cdc Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 29 Oct 2018 01:12:08 +0200 Subject: use WARNX for the function name in print --- libasound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libasound.c') diff --git a/libasound.c b/libasound.c index d234feb..0ac3611 100644 --- a/libasound.c +++ b/libasound.c @@ -271,7 +271,7 @@ snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) params->cap = pcm->cap; sio_initpar(¶ms->par); copy_important_params(¶ms->par, &pcm->hw.par); - fprintf(stderr, "rate: %u, round: %u, appbufsz: %u, bufsz: %u\n", params->par.rate, params->par.round, params->par.appbufsz, params->par.bufsz); + WARNX("rate: %u, round: %u, appbufsz: %u", params->par.rate, params->par.round, params->par.appbufsz); return 0; } @@ -294,7 +294,7 @@ snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) } } - fprintf(stderr, "rate: %u, round: %u, appbufsz: %u, bufsz: %u\n", pcm->hw.par.rate, pcm->hw.par.round, pcm->hw.par.appbufsz, pcm->hw.par.bufsz); + WARNX("rate: %u, round: %u, appbufsz: %u, bufsz: %u", pcm->hw.par.rate, pcm->hw.par.round, pcm->hw.par.appbufsz, pcm->hw.par.bufsz); return snd_pcm_prepare(pcm); } -- cgit v1.2.3