[2.6 patch] fix two snd_printdd in sound/pci/cs46xx/dsp_spos_scb_lib.c

From: Adrian Bunk
Date: Thu Feb 05 2004 - 09:27:10 EST


I got the following warnings in 2.6.2-mm1:

<-- snip -->

...
CC sound/pci/cs46xx/dsp_spos_scb_lib.o
sound/pci/cs46xx/dsp_spos_scb_lib.c: In function
`cs46xx_dsp_pcm_channel_set_period':
sound/pci/cs46xx/dsp_spos_scb_lib.c:1394: warning: too few arguments for format
sound/pci/cs46xx/dsp_spos_scb_lib.c: In function
`cs46xx_dsp_pcm_ostream_set_period':
sound/pci/cs46xx/dsp_spos_scb_lib.c:1432: warning: too few arguments for format
...

<-- snip -->

The trivial fix is below.

Please apply
Adrian

--- linux-2.6.2-mm1/sound/pci/cs46xx/dsp_spos_scb_lib.c.old 2004-02-05 15:14:57.000000000 +0100
+++ linux-2.6.2-mm1/sound/pci/cs46xx/dsp_spos_scb_lib.c 2004-02-05 15:15:28.000000000 +0100
@@ -1391,7 +1391,7 @@
temp |= DMA_RQ_C1_SOURCE_MOD16;
break;
default:
- snd_printdd ("period size (%d) not supported by HW\n");
+ snd_printdd ("period size (%d) not supported by HW\n", period_size);
return -EINVAL;
}

@@ -1429,7 +1429,7 @@
temp |= DMA_RQ_C1_DEST_MOD16;
break;
default:
- snd_printdd ("period size (%d) not supported by HW\n");
+ snd_printdd ("period size (%d) not supported by HW\n", period_size);
return -EINVAL;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/