Skip to content

Commit

Permalink
ALSA: sscape: Use correct format identifier for size_t
Browse files Browse the repository at this point in the history
The 'size' member of a struct firmware is passed to snd_printk with a
respective format string using the %d identifier. The 'size' member is
of type size_t, but format identifier %d indicates a signed int data
type. This patch replaces the %d format identifier with the correct %zu
format identifier for size_t data types.

Signed-off-by: William Breathitt Gray <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
vilhelmgray authored and tiwai committed Apr 11, 2016
1 parent b4203ff commit dc5027a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/isa/sscape.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ static int sscape_upload_microcode(struct snd_card *card, int version)
}
err = upload_dma_data(sscape, init_fw->data, init_fw->size);
if (err == 0)
snd_printk(KERN_INFO "sscape: MIDI firmware loaded %d KBs\n",
snd_printk(KERN_INFO "sscape: MIDI firmware loaded %zu KBs\n",
init_fw->size >> 10);

release_firmware(init_fw);
Expand Down

0 comments on commit dc5027a

Please sign in to comment.