diff options
author | Richard Hughes <richard@hughsie.com> | 2016-11-08 10:35:58 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-11-08 10:35:58 +0000 |
commit | 004a665ed0b1ec429eaa732e605f9d3479b1460a (patch) | |
tree | 2d9c37331b3c7cd98b90cc5635d18afcdd3474aa | |
parent | e437db346e57593775d6f2f9d618c87bccfddb89 (diff) | |
download | colord-004a665ed0b1ec429eaa732e605f9d3479b1460a.tar.gz |
ospark: Fix a few trivial compile warnings on ARM
-rw-r--r-- | lib/ospark/osp-device.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/ospark/osp-device.c b/lib/ospark/osp-device.c index 834cef8..3b31c06 100644 --- a/lib/ospark/osp-device.c +++ b/lib/ospark/osp-device.c @@ -805,7 +805,8 @@ osp_device_take_spectrum (GUsbDevice *device, GError **error) max = cd_spectrum_get_value_max (sp_probe); if (max < 0.001f) { sample_duration *= 100.f; - g_debug ("sensor read no data, setting duration to %luus", + g_debug ("sensor read no data, setting duration " + "to %" G_GUINT64_FORMAT , sample_duration); continue; } @@ -813,7 +814,8 @@ osp_device_take_spectrum (GUsbDevice *device, GError **error) /* sensor is saturated, take action */ if (max > 0.99f) { sample_duration /= 100.f; - g_debug ("sensor saturated, setting duration to %luus", + g_debug ("sensor saturated, setting duration " + "to %" G_GUINT64_FORMAT, sample_duration); continue; } @@ -833,7 +835,7 @@ osp_device_take_spectrum (GUsbDevice *device, GError **error) /* aim for FSD / 2 */ scale = (gdouble) 0.5 / max; sample_duration *= scale; - g_debug ("for max of %f, using scale=%f for duration %luus", + g_debug ("for max of %f, using scale=%f for duration %" G_GUINT64_FORMAT, max, scale, sample_duration); /* limit this to something sane */ |