From 8d9bb0e43fa8ae4ee1a1ec305f450cd28dfdb13b Mon Sep 17 00:00:00 2001 From: Carol Yang Date: Sun, 31 Oct 2021 20:01:25 -0700 Subject: [PATCH] Use suggested format specifiers --- .../ota-requestor-common/ExampleOTARequestor.cpp | 4 ++-- src/app/clusters/ota-provider/ota-provider.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ota-requestor-app/ota-requestor-common/ExampleOTARequestor.cpp b/examples/ota-requestor-app/ota-requestor-common/ExampleOTARequestor.cpp index edb85f1d718b6a..c3566d331735f2 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ExampleOTARequestor.cpp +++ b/examples/ota-requestor-app/ota-requestor-common/ExampleOTARequestor.cpp @@ -93,8 +93,8 @@ EmberAfStatus ExampleOTARequestor::HandleAnnounceOTAProvider( ChipLogProgress(SoftwareUpdate, "OTA Requestor received AnnounceOTAProvider"); ChipLogDetail(SoftwareUpdate, " FabricIndex: %" PRIu8, mProviderFabricIndex); - ChipLogDetail(SoftwareUpdate, " ProviderNodeID: %" PRIu64, mProviderNodeId); - ChipLogDetail(SoftwareUpdate, " VendorID: %" PRIu16, commandData.vendorId); + ChipLogDetail(SoftwareUpdate, " ProviderNodeID: 0x" ChipLogFormatX64, ChipLogValueX64(mProviderNodeId)); + ChipLogDetail(SoftwareUpdate, " VendorID: 0x%" PRIx16, commandData.vendorId); ChipLogDetail(SoftwareUpdate, " AnnouncementReason: %" PRIu8, announcementReason); if (commandData.metadataForNode.HasValue()) { diff --git a/src/app/clusters/ota-provider/ota-provider.cpp b/src/app/clusters/ota-provider/ota-provider.cpp index 9ffbc6693cbf8b..b526a9a7c01c8e 100644 --- a/src/app/clusters/ota-provider/ota-provider.cpp +++ b/src/app/clusters/ota-provider/ota-provider.cpp @@ -185,7 +185,7 @@ bool emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(app::CommandHandl }; ChipLogProgress(Zcl, "OTA Provider received QueryImage"); - ChipLogDetail(Zcl, " VendorID: %" PRIu16, vendorId); + ChipLogDetail(Zcl, " VendorID: 0x%" PRIx16, vendorId); ChipLogDetail(Zcl, " ProductID: %" PRIu16, productId); ChipLogDetail(Zcl, " SoftwareVersion: %" PRIu32, softwareVersion); ChipLogDetail(Zcl, " ProtocolsSupported: %" PRIu8, protocolsSupported);