Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317566
b: refs/heads/master
c: 1bcdfbc
h: refs/heads/master
v: v3
  • Loading branch information
Peter Meerwald authored and Greg Kroah-Hartman committed Jun 26, 2012
1 parent df5dc70 commit 899029b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42196d396378f4e4658dbe157d78fd23bce6bbbd
refs/heads/master: 1bcdfbcf7599a42f7aa0e41c88df178fecebc909
3 changes: 2 additions & 1 deletion trunk/drivers/staging/iio/Documentation/generic_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <string.h>
#include <poll.h>
#include <endian.h>
#include <inttypes.h>
#include "iio_utils.h"

/**
Expand Down Expand Up @@ -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)*
Expand Down

0 comments on commit 899029b

Please sign in to comment.