Skip to content

Commit

Permalink
Update error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
selissia committed Mar 10, 2022
1 parent 3c27167 commit 5f27da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform/EFR32/OTAImageProcessorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ void OTAImageProcessorImpl::HandleApply(intptr_t context)
err = bootloader_verifyImage(mSlotId, NULL);
if (err != SL_BOOTLOADER_OK)
{
ChipLogError(SoftwareUpdate, "bootloader_verifyImage error %ld", err);
ChipLogError(SoftwareUpdate, "ERROR: bootloader_verifyImage() error %ld", err);
}

err = bootloader_setImageToBootload(mSlotId);
if (err != SL_BOOTLOADER_OK)
{
ChipLogError(SoftwareUpdate, "setImageToBootload error %ld", err);
ChipLogError(SoftwareUpdate, "ERROR: bootloader_setImageToBootload() error %ld", err);
}

// This reboots the device
Expand Down Expand Up @@ -176,7 +176,7 @@ void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context)

if (err)
{
ChipLogError(SoftwareUpdate, "bootloader_eraseWriteStorage err %ld", err);
ChipLogError(SoftwareUpdate, "ERROR writing image: bootloader_eraseWriteStorage() error %ld", err);

imageProcessor->mDownloader->EndDownload(CHIP_ERROR_WRITE_FAILED);
return;
Expand Down

0 comments on commit 5f27da6

Please sign in to comment.