From: Frank Mori Hess Date: Fri, 5 Jan 2007 19:35:14 +0000 (+0000) Subject: print max data value as unsigned value instead of signed, so 32 bit X-Git-Tag: v0_8_0~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1995338a12992b48fccd68bc34b1ecc6395baee;p=comedilib.git print max data value as unsigned value instead of signed, so 32 bit counters show proper max value (instead of -1). --- diff --git a/demo/info.c b/demo/info.c index dd717fe..bffc71c 100644 --- a/demo/info.c +++ b/demo/info.c @@ -77,12 +77,12 @@ int main(int argc,char *argv[]) n_chans=comedi_get_n_channels(it,i); printf(" number of channels: %d\n",n_chans); if(!comedi_maxdata_is_chan_specific(it,i)){ - printf(" max data value: %d\n",comedi_get_maxdata(it,i,0)); + printf(" max data value: %lu\n", (unsigned long)comedi_get_maxdata(it,i,0)); }else{ printf(" max data value: (channel specific)\n"); for(chan=0;chan