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>
This commit is contained in:
Peter Meerwald 2012-06-25 23:12:16 +02:00 committed by Greg Kroah-Hartman
parent 42196d3963
commit 1bcdfbcf75

View 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)*