Re: [PATCH 6/7] iio staging: use PRId64 format specifier for int64_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



New one to me, but fair enough.

On 06/25/2012 08:11 PM, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@xxxxxxxxxx>
Acked-by: Jonathan Cameron <jic23@xxxxxxxxxx>
> ---
>  drivers/staging/iio/Documentation/generic_buffer.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/Documentation/generic_buffer.c b/drivers/staging/iio/Documentation/generic_buffer.c
> index ab228b4..1dd0681 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)*
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux