Skip to content

Commit 9b4662d

Browse files
zhang jiaotiwai
authored andcommitted
ALSA: ump: Fix the wrong format specifier
The format specifier of "unsigned int" in snprintf() should be "%u", not "%d". Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> Link: https://patch.msgid.link/20241114075822.41614-1-zhangjiao2@cmss.chinamobile.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent b773c08 commit 9b4662d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/core/ump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ int snd_ump_block_new(struct snd_ump_endpoint *ump, unsigned int blk,
387387
fb->info.first_group = first_group;
388388
fb->info.num_groups = num_groups;
389389
/* fill the default name, may be overwritten to a better name */
390-
snprintf(fb->info.name, sizeof(fb->info.name), "Group %d-%d",
390+
snprintf(fb->info.name, sizeof(fb->info.name), "Group %u-%u",
391391
first_group + 1, first_group + num_groups);
392392

393393
/* put the entry in the ordered list */

0 commit comments

Comments
 (0)