Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libsensors: Commit

hardware/intel/libsensors


Commit MetaInfo

Revision2682669b3826042beeba85bc226eaf8714f6bcfa (tree)
Time2016-05-06 00:46:03
AuthorRob Herring <robh@kern...>
CommiterRob Herring

Log Message

Fix printf size related warnings

Signed-off-by: Rob Herring <robh@kernel.org>

Change Summary

Incremental Difference

--- a/control.c
+++ b/control.c
@@ -596,7 +596,7 @@ static void* acquisition_routine (void* param)
596596 ret = write(sensor[s].thread_data_fd[1], &data, sizeof(sensors_event_t));
597597
598598 if (ret != sizeof(sensors_event_t))
599- ALOGE("S%d write failure: wrote %d, got %d\n", s, sizeof(sensors_event_t), ret);
599+ ALOGE("S%d write failure: wrote %zd, got %d\n", s, sizeof(sensors_event_t), ret);
600600 }
601601
602602 /* Check and honor termination requests */
@@ -1313,7 +1313,7 @@ static int integrate_device_report_from_dev(int dev_num, int fd)
13131313 return 0;
13141314 }
13151315
1316- ALOGV("Driver timestamp on iio device %d: ts=%lld\n", dev_num, ts);
1316+ ALOGV("Driver timestamp on iio device %d: ts=%jd\n", dev_num, ts);
13171317
13181318 boot_to_rt_delta = get_timestamp_boot() - get_timestamp_realtime();
13191319
@@ -1347,7 +1347,7 @@ static int integrate_device_report_from_event(int dev_num, int fd)
13471347
13481348 ts = event.timestamp + boot_to_rt_delta;
13491349
1350- ALOGV("Read event %lld from fd %d of iio device %d - ts %lld\n", event.id, fd, dev_num, ts);
1350+ ALOGV("Read event %lld from fd %d of iio device %d - ts %jd\n", event.id, fd, dev_num, ts);
13511351
13521352 /* Map device report to sensor reports */
13531353 for (s = 0; s < MAX_SENSORS; s++)
@@ -1681,7 +1681,7 @@ int sensor_set_delay (int s, int64_t ns)
16811681 float requested_sampling_rate;
16821682
16831683 if (ns <= 0) {
1684- ALOGE("Invalid delay requested on sensor %d: %lld\n", s, ns);
1684+ ALOGE("Invalid delay requested on sensor %d: %jd\n", s, ns);
16851685 return -EINVAL;
16861686 }
16871687
Show on old repository browser