summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2012-06-25 21:12:16 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-26 21:57:30 (GMT)
commit1bcdfbcf7599a42f7aa0e41c88df178fecebc909 (patch)
treef4752fd42df45774a60d3382bb29ed9a3b933ac8
parent42196d396378f4e4658dbe157d78fd23bce6bbbd (diff)
downloadlinux-fsl-qoriq-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>
-rw-r--r--drivers/staging/iio/Documentation/generic_buffer.c3
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)*