mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-05-30 21:38:11 -04:00
pcm: fix leading space in snd_pcm_hw_param_dump for mask parameters
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
58e4aa3e33
commit
3c060c978a
1 changed files with 6 additions and 3 deletions
|
|
@ -1225,11 +1225,12 @@ void snd_pcm_hw_param_dump(const snd_pcm_hw_params_t *params,
|
|||
if (hw_is_mask(var)) {
|
||||
const snd_mask_t *mask = hw_param_mask_c(params, var);
|
||||
if (snd_mask_empty(mask))
|
||||
snd_output_puts(out, " NONE");
|
||||
snd_output_puts(out, "NONE");
|
||||
else if (snd_mask_full(mask))
|
||||
snd_output_puts(out, " ALL");
|
||||
snd_output_puts(out, "ALL");
|
||||
else {
|
||||
unsigned int k;
|
||||
int sep = 0;
|
||||
for (k = 0; k <= SND_MASK_MAX; ++k) {
|
||||
if (snd_mask_test(mask, k)) {
|
||||
const char *s;
|
||||
|
|
@ -1248,8 +1249,10 @@ void snd_pcm_hw_param_dump(const snd_pcm_hw_params_t *params,
|
|||
s = NULL;
|
||||
}
|
||||
if (s) {
|
||||
snd_output_putc(out, ' ');
|
||||
if (sep)
|
||||
snd_output_putc(out, ' ');
|
||||
snd_output_puts(out, s);
|
||||
sep = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue