Messages in this thread | | | Date | Sat, 20 Nov 2004 11:32:10 +0100 | From | Jean Delvare <> | Subject | Re: adm1026 driver port for kernel 2.6.10-rc2 [RE-REVISED DRIVER] |
| |
Hi Arjan,
> > static ssize_t show_in(struct device *dev, char *buf, int nr) > > { > > struct adm1026_data *data = adm1026_update_device(dev); > > return sprintf(buf,"%d\n", INS_FROM_REG(nr, data->in[nr])); > > } > > any chance you could make this use snprintf instead ?
None of the other hardware monitoring clients driver do, nor do I think they should. What are we trying to improve?
Thanks.
-- Jean Delvare http://khali.linux-fr.org/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |