From f80c83a1d0c041911d5a2bb5648ac5a4abcdd16c Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 8 Jan 2007 20:56:24 +0000 Subject: [PATCH] Print large unsigned values correctly (not as negative numbers) for subdevice with 32 bit values. --- demo/inp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.26.2