diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2012-06-25 21:12:16 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-26 21:57:30 (GMT) |
commit | 1bcdfbcf7599a42f7aa0e41c88df178fecebc909 (patch) | |
tree | f4752fd42df45774a60d3382bb29ed9a3b933ac8 /drivers/staging/iio/Documentation | |
parent | 42196d396378f4e4658dbe157d78fd23bce6bbbd (diff) | |
download | linux-1bcdfbcf7599a42f7aa0e41c88df178fecebc909.tar.xz |
staging: iio: use PRId64 format specifier for int64_t
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/Documentation')
-rw-r--r-- | drivers/staging/iio/Documentation/generic_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/iio/Documentation/generic_buffer.c b/drivers/staging/iio/Documentation/generic_buffer.c index b89b7218..b16c4b2 100644 --- a/drivers/staging/iio/Documentation/generic_buffer.c +++ b/drivers/staging/iio/Documentation/generic_buffer.c @@ -29,6 +29,7 @@ #include <string.h> #include <poll.h> #include <endian.h> +#include <inttypes.h> #include "iio_utils.h" /** @@ -111,7 +112,7 @@ void process_scan(char *data, /* special case for timestamp */ if (channels[k].scale == 1.0f && channels[k].offset == 0.0f) - printf(" %lld", val); + printf("%" PRId64 " ", val); else printf("%05f ", ((float)val + channels[k].offset)* |