summaryrefslogtreecommitdiff
path: root/tizen-audio-impl-pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tizen-audio-impl-pcm.c')
-rw-r--r--tizen-audio-impl-pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tizen-audio-impl-pcm.c b/tizen-audio-impl-pcm.c
index 91a02db..0713e85 100644
--- a/tizen-audio-impl-pcm.c
+++ b/tizen-audio-impl-pcm.c
@@ -779,12 +779,12 @@ audio_return_t _pcm_set_params(void *pcm_handle, uint32_t direction, void *sampl
}
if ((err = snd_pcm_hw_params_set_channels(pcm_handle, hwparams, ss.channels)) < 0) {
- AUDIO_LOG_ERROR("snd_pcm_hw_params_set_channels(%u) failed : %d", err);
+ AUDIO_LOG_ERROR("snd_pcm_hw_params_set_channels(%u) failed : %d", ss.channels, err);
return AUDIO_ERR_PARAMETER;
}
if ((err = snd_pcm_hw_params_set_period_size(pcm_handle, hwparams, period_size, 0)) < 0) {
- AUDIO_LOG_ERROR("snd_pcm_hw_params_set_period_size(%u) failed : %d", err);
+ AUDIO_LOG_ERROR("snd_pcm_hw_params_set_period_size(%u) failed : %d", period_size, err);
return AUDIO_ERR_PARAMETER;
}