diff options
author | Masanari Iida <standby24x7@gmail.com> | 2014-04-22 07:42:05 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-04-28 06:18:47 -0400 |
commit | 53403a8013c5523c400987bf43a8c43963127dda (patch) | |
tree | 90331e899e200b1cd48999611f82b2ed99b47ce6 /sound/core/seq | |
parent | a22aa26f754bebc6e5ca7c503339b4812d714e89 (diff) |
ALSA: core: Fix format string mismatch in seq_midi.c
Fix format string mismatch in snd_seq_midisynth_register_port().
Argument type of p is unsigned int.
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq')
-rw-r--r-- | sound/core/seq/seq_midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c index 3e05c55a2880..a1fd77af6059 100644 --- a/sound/core/seq/seq_midi.c +++ b/sound/core/seq/seq_midi.c | |||
@@ -362,13 +362,13 @@ snd_seq_midisynth_register_port(struct snd_seq_device *dev) | |||
362 | if (! port->name[0]) { | 362 | if (! port->name[0]) { |
363 | if (info->name[0]) { | 363 | if (info->name[0]) { |
364 | if (ports > 1) | 364 | if (ports > 1) |
365 | snprintf(port->name, sizeof(port->name), "%s-%d", info->name, p); | 365 | snprintf(port->name, sizeof(port->name), "%s-%u", info->name, p); |
366 | else | 366 | else |
367 | snprintf(port->name, sizeof(port->name), "%s", info->name); | 367 | snprintf(port->name, sizeof(port->name), "%s", info->name); |
368 | } else { | 368 | } else { |
369 | /* last resort */ | 369 | /* last resort */ |
370 | if (ports > 1) | 370 | if (ports > 1) |
371 | sprintf(port->name, "MIDI %d-%d-%d", card->number, device, p); | 371 | sprintf(port->name, "MIDI %d-%d-%u", card->number, device, p); |
372 | else | 372 | else |
373 | sprintf(port->name, "MIDI %d-%d", card->number, device); | 373 | sprintf(port->name, "MIDI %d-%d", card->number, device); |
374 | } | 374 | } |