diff --git a/examples/persistent-storage/KeyValueStorageTest.cpp b/examples/persistent-storage/KeyValueStorageTest.cpp index 9be95a2100bb31..6558d1fcc08c4b 100644 --- a/examples/persistent-storage/KeyValueStorageTest.cpp +++ b/examples/persistent-storage/KeyValueStorageTest.cpp @@ -36,7 +36,8 @@ using namespace chip::DeviceLayer::PersistedStorage; { \ char error_str[255]; \ chip::FormatCHIPError(error_str, sizeof(error_str), temp_test_result); \ - ChipLogError(NotSpecified, "%s: FAILED %ld [%s]", #test_result, temp_test_result, chip::ErrorStr(temp_test_result)); \ + ChipLogError(NotSpecified, "%s: FAILED %" PRId32 " [%s]", #test_result, temp_test_result, \ + chip::ErrorStr(temp_test_result)); \ } \ else \ { \