diff options
author | Michael Forney <mforney@mforney.org> | 2020-02-05 00:12:20 -0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-02-10 12:39:17 +0100 |
commit | 646b3b1c0badbfd1b2ea7b82eb59d43a460c531c (patch) | |
tree | e408fb9033f15a1b4e61e49b73fdc1dc7385e79d /alsactl/state.c | |
parent | 62a765087e3885a463dbf0d888c5d666da9ee7b3 (diff) | |
download | alsa-utils-646b3b1c0badbfd1b2ea7b82eb59d43a460c531c.tar.gz |
Use %lli for long long in printf
The `L` length modifier only applies to floating-point conversion
specifiers, and `ll` is used for `long long` integers.
Although glibc accepts %Li, musl does not and returns EINVAL.
Signed-off-by: Michael Forney <mforney@mforney.org>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'alsactl/state.c')
-rw-r--r-- | alsactl/state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alsactl/state.c b/alsactl/state.c index 38e85c0..22e0269 100644 --- a/alsactl/state.c +++ b/alsactl/state.c @@ -336,9 +336,9 @@ static int get_control(snd_ctl_t *handle, snd_ctl_elem_id_t *id, snd_config_t *t long long max = snd_ctl_elem_info_get_max64(info); long long step = snd_ctl_elem_info_get_step64(info); if (step) - sprintf(buf, "%Li - %Li (step %Li)", min, max, step); + sprintf(buf, "%lli - %lli (step %lli)", min, max, step); else - sprintf(buf, "%Li - %Li", min, max); + sprintf(buf, "%lli - %lli", min, max); err = snd_config_string_add(comment, "range", buf); if (err < 0) { error("snd_config_string_add: %s", snd_strerror(err)); |