Skip to content

Commit

Permalink
[ALSA] pcxhr - Fix a compiler warning on 64bit architectures
Browse files Browse the repository at this point in the history
The patch fixes a conpile warning on 64bit architectures, caused by
different sizes of size_t . Since size_t is unsigned I permited
myself to cange the format, too.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Henrik Kretzschmar authored and Jaroslav Kysela committed Apr 27, 2006
1 parent c6cc0e3 commit 711ee39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/pcxhr/pcxhr_hwdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ static int pcxhr_hwdep_dsp_load(struct snd_hwdep *hw,
fw.size = dsp->length;
fw.data = vmalloc(fw.size);
if (! fw.data) {
snd_printk(KERN_ERR "pcxhr: cannot allocate dsp image (%d bytes)\n",
fw.size);
snd_printk(KERN_ERR "pcxhr: cannot allocate dsp image (%lu bytes)\n",
(unsigned long)fw.size);
return -ENOMEM;
}
if (copy_from_user(fw.data, dsp->image, dsp->length)) {
Expand Down

0 comments on commit 711ee39

Please sign in to comment.