]> err.no Git - linux-2.6/commitdiff
[ALSA] pcxhr - Fix a compiler warning on 64bit architectures
authorHenrik Kretzschmar <henne@nachtwindheim.de>
Thu, 20 Apr 2006 10:37:00 +0000 (12:37 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 27 Apr 2006 19:10:27 +0000 (21:10 +0200)
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>
sound/pci/pcxhr/pcxhr_hwdep.c

index 03517c10e99c25ffa1ff7438d9d1af5404fbd1ec..369c19fea985f11af6c108ac1e9aa3e6668c0485 100644 (file)
@@ -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)) {