summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-utils-dump.c
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-06-22 17:19:40 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-06-22 17:19:40 +0200
commit7a02db1106cc5fab6016b05a5c13d3dc7c6f0be9 (patch)
tree0e1fe523a8c1196f401a5851d40d404fe7592de8 /plugins/alsa/alsa-utils-dump.c
parentb124cc00e9714ac20fdf96f480fc7f08e06a2150 (diff)
plugins: code & log cleanup
Diffstat (limited to 'plugins/alsa/alsa-utils-dump.c')
-rw-r--r--plugins/alsa/alsa-utils-dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/alsa/alsa-utils-dump.c b/plugins/alsa/alsa-utils-dump.c
index 953f005..28ed83a 100644
--- a/plugins/alsa/alsa-utils-dump.c
+++ b/plugins/alsa/alsa-utils-dump.c
@@ -80,7 +80,7 @@ PUBLIC void AlsaDumpFormats(SoftMixerT *mixer, snd_pcm_t *pcm) {
snd_pcm_hw_params_alloca(&pxmHwParams);
ret = snd_pcm_hw_params_any(pcm, pxmHwParams);
if (ret < 0) {
- AFB_ApiError(mixer->api, "FAILED to read params of PCM %s\n", snd_pcm_name(pcm));
+ AFB_ApiError(mixer->api, "FAILED to read params of PCM %s", snd_pcm_name(pcm));
}
AFB_ApiNotice(mixer->api, "Available formats: PCM=%s", ALSA_PCM_UID(pcm, string));
@@ -153,7 +153,7 @@ PUBLIC void AlsaDumpPcmParams(SoftMixerT *mixer, snd_pcm_hw_params_t *pcmHwParam
snd_output_buffer_open(&output);
snd_pcm_hw_params_dump(pcmHwParams, output);
snd_output_buffer_string(output, &buffer);
- AFB_ApiNotice(mixer->api, "AlsaPCMDump: %s", buffer);
+ AFB_ApiNotice(mixer->api, "%s:\n%s",__func__, buffer);
snd_output_close(output);
}
@@ -164,11 +164,11 @@ PUBLIC void AlsaDumpPcmInfo(SoftMixerT *mixer, const char* info, snd_pcm_t *pcm)
// create an output buffer an dump PCM config
snd_output_buffer_open(&out);
snd_output_printf(out, "%s", info);
- snd_output_printf(out, ": ");
+ snd_output_printf(out, ":\n");
snd_pcm_dump(pcm, out);
snd_output_buffer_string(out, &buffer);
- AFB_ApiNotice(mixer->api, "AlsaPCMDump: %s", buffer);
+ AFB_ApiNotice(mixer->api, "%s:\n%s", __func__, buffer);
snd_output_close(out);
}