From: Ian Abbott Date: Wed, 21 Jun 2006 16:27:12 +0000 (+0000) Subject: Fix gcc-4.1 warnings (unused variable, printk format specifier mismatch). X-Git-Tag: r0_7_71~16 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=730f42fe64ac7d6f0a44e56c5c6439ea5a08bfb6;p=comedi.git Fix gcc-4.1 warnings (unused variable, printk format specifier mismatch). --- diff --git a/comedi/drivers/mpc624.c b/comedi/drivers/mpc624.c index b67e2da7..0f28f6b1 100644 --- a/comedi/drivers/mpc624.c +++ b/comedi/drivers/mpc624.c @@ -276,7 +276,7 @@ static int mpc624_detach(comedi_device *dev) static int mpc624_ai_rinsn(comedi_device *dev, comedi_subdevice *s, comedi_insn *insn, lsampl_t *data) { int n, i; - unsigned long int data_in, data_out, j; + unsigned long int data_in, data_out; unsigned char ucPort; // WARNING: We always write 0 to GNSWA bit, so the channel range is +-/10.1Vdc @@ -363,9 +363,9 @@ static int mpc624_ai_rinsn(comedi_device *dev, comedi_subdevice *s, comedi_insn // 00: sub-LSB if(data_in & MPC624_EOC_BIT) - rt_printk("MPC624: EOC bit is set (data_in=%d)!", data_in); + rt_printk("MPC624: EOC bit is set (data_in=%lu)!", data_in); if(data_in & MPC624_DMY_BIT) - rt_printk("MPC624: DMY bit is set (data_in=%d)!", data_in); + rt_printk("MPC624: DMY bit is set (data_in=%lu)!", data_in); if(data_in & MPC624_SGN_BIT) // check the sign bit { // The voltage is positive data_in &= 0x3FFFFFFF; // EOC and DMY should be 0, but we will mask them out just to be sure