staging: iio: use PRId64 format specifier for int64_t
authorPeter Meerwald <pmeerw@pmeerw.net>
Mon, 25 Jun 2012 21:12:16 +0000 (23:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 21:57:30 +0000 (14:57 -0700)
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/Documentation/generic_buffer.c

index b89b721822001f4f248ad919d8fd82e45cc6d837..b16c4b208ae4ce3ebb566d0d76535ba91a6418a8 100644 (file)
@@ -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)*