From d3c7186790641dd824d92c924bd423f1a1b5207e Mon Sep 17 00:00:00 2001 From: Martin Turon Date: Wed, 15 Dec 2021 12:01:58 -0800 Subject: [PATCH] [build] Fix warning failure. --- src/app/clusters/basic/basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/basic/basic.cpp b/src/app/clusters/basic/basic.cpp index 88dcadf7de97a1..900b358287c8c3 100644 --- a/src/app/clusters/basic/basic.cpp +++ b/src/app/clusters/basic/basic.cpp @@ -180,7 +180,7 @@ void emberAfBasicClusterServerInitCallback(chip::EndpointId endpoint) uint8_t manufacturingDayOfMonth; if (ConfigurationMgr().GetManufacturingDate(manufacturingYear, manufacturingMonth, manufacturingDayOfMonth) == CHIP_NO_ERROR) { - snprintf(manufacturingDateString, sizeof(manufacturingDateString), "%04" PRIu16 "-%02" PRIu16 "-%02" PRIu16, + snprintf(manufacturingDateString, sizeof(manufacturingDateString), "%04" PRIu16 "-%02" PRIu8 "-%02" PRIu8, manufacturingYear, manufacturingMonth, manufacturingDayOfMonth); status = Attributes::ManufacturingDate::Set(endpoint, CharSpan(manufacturingDateString, strlen(manufacturingDateString))); VerifyOrdo(EMBER_ZCL_STATUS_SUCCESS == status,