mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 18:56:32 +01:00
Clemens Ladisch <clemens@ladisch.de>
fix error messages for snd_mixer_load
This commit is contained in:
parent
1ae3fa8532
commit
7759ed8617
1 changed files with 3 additions and 3 deletions
|
@ -774,7 +774,7 @@ static int selems(int level)
|
|||
}
|
||||
err = snd_mixer_load(handle);
|
||||
if (err < 0) {
|
||||
error("Mixer load error: %s", card, snd_strerror(err));
|
||||
error("Mixer %s load error: %s", card, snd_strerror(err));
|
||||
snd_mixer_close(handle);
|
||||
return err;
|
||||
}
|
||||
|
@ -1145,7 +1145,7 @@ static int sset(unsigned int argc, char *argv[], int roflag)
|
|||
}
|
||||
err = snd_mixer_load(handle);
|
||||
if (err < 0) {
|
||||
error("Mixer load error: %s", card, snd_strerror(err));
|
||||
error("Mixer %s load error: %s", card, snd_strerror(err));
|
||||
snd_mixer_close(handle);
|
||||
return err;
|
||||
}
|
||||
|
@ -1427,7 +1427,7 @@ static int sevents(int argc ATTRIBUTE_UNUSED, char *argv[] ATTRIBUTE_UNUSED)
|
|||
snd_mixer_set_callback(handle, mixer_event);
|
||||
err = snd_mixer_load(handle);
|
||||
if (err < 0) {
|
||||
error("Mixer load error: %s", card, snd_strerror(err));
|
||||
error("Mixer %s load error: %s", card, snd_strerror(err));
|
||||
snd_mixer_close(handle);
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue