Commit 1bcdfbcf authored by Peter Meerwald's avatar Peter Meerwald Committed by Greg Kroah-Hartman

staging: iio: use PRId64 format specifier for int64_t

Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 42196d39
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <string.h> #include <string.h>
#include <poll.h> #include <poll.h>
#include <endian.h> #include <endian.h>
#include <inttypes.h>
#include "iio_utils.h" #include "iio_utils.h"
/** /**
...@@ -111,7 +112,7 @@ void process_scan(char *data, ...@@ -111,7 +112,7 @@ void process_scan(char *data,
/* special case for timestamp */ /* special case for timestamp */
if (channels[k].scale == 1.0f && if (channels[k].scale == 1.0f &&
channels[k].offset == 0.0f) channels[k].offset == 0.0f)
printf(" %lld", val); printf("%" PRId64 " ", val);
else else
printf("%05f ", ((float)val + printf("%05f ", ((float)val +
channels[k].offset)* channels[k].offset)*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment