mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 20:16:46 +01:00
fixed the error message
This commit is contained in:
parent
f098bd3f50
commit
83ea8891c4
1 changed files with 1 additions and 4 deletions
|
@ -952,10 +952,7 @@ static int set_control(snd_ctl_t *handle, snd_config_t *control)
|
|||
_ok:
|
||||
err = snd_ctl_elem_write(handle, ctl);
|
||||
if (err < 0) {
|
||||
snd_ctl_elem_id_t *id;
|
||||
snd_ctl_elem_id_alloca(&id);
|
||||
snd_ctl_elem_value_get_id(ctl, id);
|
||||
error("Cannot write control '%s': %s", id_str(id), snd_strerror(err));
|
||||
error("Cannot write control '%d:%d:%d:%s:%d' : %s", iface, device, subdevice, name, index, snd_strerror(err));
|
||||
return err;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue