Commit 9b4662d0 authored by zhang jiao's avatar zhang jiao Committed by Takashi Iwai
Browse files

ALSA: ump: Fix the wrong format specifier



The format specifier of "unsigned int" in snprintf()
should be "%u", not "%d".

Signed-off-by: default avatarzhang jiao <zhangjiao2@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241114075822.41614-1-zhangjiao2@cmss.chinamobile.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b773c086
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -387,7 +387,7 @@ int snd_ump_block_new(struct snd_ump_endpoint *ump, unsigned int blk,
	fb->info.first_group = first_group;
	fb->info.num_groups = num_groups;
	/* fill the default name, may be overwritten to a better name */
	snprintf(fb->info.name, sizeof(fb->info.name), "Group %d-%d",
	snprintf(fb->info.name, sizeof(fb->info.name), "Group %u-%u",
		 first_group + 1, first_group + num_groups);

	/* put the entry in the ordered list */