This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 99633aba70afb898c99b294f83bfe6e33376ce51 Author: YAMAMOTO Takashi <yamam...@midokura.com> AuthorDate: Tue Nov 24 12:49:08 2020 +0900 graphics/nxwm/src/ccalibration.cxx: Fix syslog formats --- graphics/nxwm/src/ccalibration.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/graphics/nxwm/src/ccalibration.cxx b/graphics/nxwm/src/ccalibration.cxx index a15afaa..4120491 100644 --- a/graphics/nxwm/src/ccalibration.cxx +++ b/graphics/nxwm/src/ccalibration.cxx @@ -37,6 +37,7 @@ * Included Files ****************************************************************************/ +#include <cinttypes> #include <cunistd> #include <cerrno> @@ -1241,7 +1242,8 @@ bool CCalibration::createCalibrationData(struct SCalibrationData &data) data.xSlope = b16divb16(itob16(CALIBRATION_RIGHTX - CALIBRATION_LEFTX), (rightX - leftX)); data.xOffset = itob16(CALIBRATION_LEFTX) - b16mulb16(leftX, data.xSlope); - iinfo("New xSlope: %08x xOffset: %08x\n", data.xSlope, data.xOffset); + iinfo("New xSlope: %08" PRIx32 " xOffset: %08" PRIx32 "\n", + data.xSlope, data.xOffset); // Similarly for Y // @@ -1262,7 +1264,8 @@ bool CCalibration::createCalibrationData(struct SCalibrationData &data) data.ySlope = b16divb16(itob16(CALIBRATION_BOTTOMY - CALIBRATION_TOPY), (bottomY - topY)); data.yOffset = itob16(CALIBRATION_TOPY) - b16mulb16(topY, data.ySlope); - iinfo("New ySlope: %08x yOffset: %08x\n", data.ySlope, data.yOffset); + iinfo("New ySlope: %08" PRIx32 " yOffset: %08" PRIx32 "\n", + data.ySlope, data.yOffset); #endif return true;