summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2018-01-02 22:57:46 -0800
committerYi Kong <yikong@google.com>2018-01-02 22:57:46 -0800
commit004dd379df0d66c2e659aa6f2810b11768234b1f (patch)
tree0ce9e88b1d93e9a1673863945d0021e53d2633db
parent384fa7b6dc6e9fd89ebe36d6da8dcfdfaa457f9c (diff)
downloadplatform_hardware_interfaces-004dd379df0d66c2e659aa6f2810b11768234b1f.tar.gz
platform_hardware_interfaces-004dd379df0d66c2e659aa6f2810b11768234b1f.tar.bz2
platform_hardware_interfaces-004dd379df0d66c2e659aa6f2810b11768234b1f.zip
Use correct format specifier for uint32_t
Discovered by the upcoming compiler update. Test: m checkbuild Change-Id: I03ed479a6a5c42d8dcc192e85d5268d1cd65cab8
-rw-r--r--gnss/1.0/default/Gnss.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnss/1.0/default/Gnss.cpp b/gnss/1.0/default/Gnss.cpp
index cfcee243bb..a27cdf3960 100644
--- a/gnss/1.0/default/Gnss.cpp
+++ b/gnss/1.0/default/Gnss.cpp
@@ -121,7 +121,7 @@ void Gnss::gnssSvStatusCb(GnssSvStatus* status) {
svStatus.numSvs = status->num_svs;
if (svStatus.numSvs > static_cast<uint32_t>(GnssMax::SVS_COUNT)) {
- ALOGW("Too many satellites %zd. Clamps to %d.", svStatus.numSvs, GnssMax::SVS_COUNT);
+ ALOGW("Too many satellites %u. Clamps to %d.", svStatus.numSvs, GnssMax::SVS_COUNT);
svStatus.numSvs = static_cast<uint32_t>(GnssMax::SVS_COUNT);
}
@@ -191,7 +191,7 @@ void Gnss::gpsSvStatusCb(GpsSvStatus* svInfo) {
* GnssMax::SVS_COUNT entries.
*/
if (svStatus.numSvs > static_cast<uint32_t>(GnssMax::SVS_COUNT)) {
- ALOGW("Too many satellites %zd. Clamps to %d.", svStatus.numSvs, GnssMax::SVS_COUNT);
+ ALOGW("Too many satellites %u. Clamps to %d.", svStatus.numSvs, GnssMax::SVS_COUNT);
svStatus.numSvs = static_cast<uint32_t>(GnssMax::SVS_COUNT);
}