verifyDriveGeometry.cpp (043af59f7fadce9b7e3872d91b1a0e841fc24cea) | verifyDriveGeometry.cpp (15b63e12bdc3f3116fb841349dd4f1cd17a8398b) |
---|---|
1#include "verifyDriveGeometry.hpp" 2 3#include <phosphor-logging/lg2.hpp> 4#include <xyz/openbmc_project/Common/error.hpp> 5 6#include <string> 7 8namespace estoraged 9{ 10using sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure; 11 | 1#include "verifyDriveGeometry.hpp" 2 3#include <phosphor-logging/lg2.hpp> 4#include <xyz/openbmc_project/Common/error.hpp> 5 6#include <string> 7 8namespace estoraged 9{ 10using sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure; 11 |
12void VerifyDriveGeometry::geometryOkay(uint64_t eraseMaxGeometry, 13 uint64_t eraseMinGeometry, 14 uint64_t bytes) | 12void VerifyDriveGeometry::geometryOkay( 13 uint64_t eraseMaxGeometry, uint64_t eraseMinGeometry, uint64_t bytes) |
15{ 16 if (bytes > eraseMaxGeometry) 17 { 18 lg2::error("Erase verify Geometry too large", "REDFISH_MESSAGE_ID", 19 std::string("OpenBMC.0.1.DriveEraseFailure"), 20 "REDFISH_MESSAGE_ARGS", 21 std::to_string(bytes) + ">" + 22 std::to_string(eraseMaxGeometry)); --- 17 unchanged lines hidden --- | 14{ 15 if (bytes > eraseMaxGeometry) 16 { 17 lg2::error("Erase verify Geometry too large", "REDFISH_MESSAGE_ID", 18 std::string("OpenBMC.0.1.DriveEraseFailure"), 19 "REDFISH_MESSAGE_ARGS", 20 std::to_string(bytes) + ">" + 21 std::to_string(eraseMaxGeometry)); --- 17 unchanged lines hidden --- |