Skip to content

Commit 044a646

Browse files
committed
storage flash: remove duplicated info from error messages
1 parent 2b786d9 commit 044a646

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

firmware/controllers/storage_flash.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,30 +95,30 @@ StorageStatus SettingStorageFlash::store(size_t id, const uint8_t *ptr, size_t s
9595
if (getExtraPageFlashOffset(static_cast<StorageItemId>(id)) == 0) {
9696
const auto err = intFlashErase(addr, size);
9797
if (FLASH_RETURN_SUCCESS != err) {
98-
efiPrintf("Flash: failed to erase flash at 0x%08x: %d", addr, err);
98+
efiPrintf("Flash: failed to erase flash: %d", err);
9999
status = StorageStatus::Failed;
100100
}
101101
} else {
102102
// Extra pages share their sector with the main config. They must only be
103103
// written immediately after a main config write has erased the sector.
104104
// If the area is not blank, the caller must trigger a full config burn instead.
105105
if (!intFlashIsErased(addr, size)) {
106-
efiPrintf("Flash: flash is not erased at 0x%08x", addr);
106+
efiPrintf("Flash: flash is not erased");
107107
status = StorageStatus::Failed;
108108
}
109109
}
110110

111111
if (status == StorageStatus::Ok) {
112112
const auto err = intFlashWrite(addr, reinterpret_cast<const char*>(ptr), size);
113113
if (FLASH_RETURN_SUCCESS != err) {
114-
efiPrintf("Flash: failed to write flash at 0x%08x: %d", addr, err);
114+
efiPrintf("Flash: failed to write flash: %d", err);
115115
status = StorageStatus::Failed;
116116
}
117117
}
118118

119119
if (status == StorageStatus::Ok) {
120120
if (intFlashCompare(addr, reinterpret_cast<const char*>(ptr), size) != TRUE) {
121-
efiPrintf("Flash: validation failed at 0x%08x", addr);
121+
efiPrintf("Flash: validation failed");
122122
status = StorageStatus::Failed;
123123
}
124124
}

0 commit comments

Comments
 (0)