mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Print unsigned ints with %u instead of %i. (snd_ctl_ascii_elem_id_get)
Signed-off-by: Nathan Mills <the.true.nathan.mills@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
1181bfc458
commit
d95062c481
1 changed files with 3 additions and 3 deletions
|
|
@ -126,17 +126,17 @@ char *snd_ctl_ascii_elem_id_get(snd_ctl_elem_id_t *id)
|
|||
device = snd_ctl_elem_id_get_device(id);
|
||||
subdevice = snd_ctl_elem_id_get_subdevice(id);
|
||||
if (index) {
|
||||
snprintf(buf1, sizeof(buf1), ",index=%i", index);
|
||||
snprintf(buf1, sizeof(buf1), ",index=%u", index);
|
||||
if (strlen(buf) + strlen(buf1) < sizeof(buf))
|
||||
strcat(buf, buf1);
|
||||
}
|
||||
if (device) {
|
||||
snprintf(buf1, sizeof(buf1), ",device=%i", device);
|
||||
snprintf(buf1, sizeof(buf1), ",device=%u", device);
|
||||
if (strlen(buf) + strlen(buf1) < sizeof(buf))
|
||||
strcat(buf, buf1);
|
||||
}
|
||||
if (subdevice) {
|
||||
snprintf(buf1, sizeof(buf1), ",subdevice=%i", subdevice);
|
||||
snprintf(buf1, sizeof(buf1), ",subdevice=%u", subdevice);
|
||||
if (strlen(buf) + strlen(buf1) < sizeof(buf))
|
||||
strcat(buf, buf1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue