From: Frank Mori Hess Date: Mon, 8 Jan 2007 20:56:24 +0000 (+0000) Subject: Print large unsigned values correctly (not as negative numbers) for X-Git-Tag: v0_8_0~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f80c83a1d0c041911d5a2bb5648ac5a4abcdd16c;p=comedilib.git Print large unsigned values correctly (not as negative numbers) for subdevice with 32 bit values. --- diff --git a/demo/inp.c b/demo/inp.c index 1719ed3..33f9bf9 100644 --- a/demo/inp.c +++ b/demo/inp.c @@ -77,11 +77,11 @@ int main(int argc, char *argv[]) range_info->unit); } if(options.verbose) { - printf(" (%d raw units)", data); + printf(" (%lu raw units)", (unsigned long)data); } } } else { - printf("%d",data); + printf("%lu", (unsigned long)data); } printf("\n");