Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Dec 30, 2024
1 parent 4a6baee commit 777aa00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cpp/command/command_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ bool CommandContext::ReturnLocalizedError(LocalizationKey key, PbErrorCode error
return ReturnStatus(false, command_localizer.Localize(key, locale, arg1, arg2, arg3), error_code, false);
}

bool CommandContext::ReturnStatus(bool status, const string &msg, PbErrorCode error_code, bool log) const
bool CommandContext::ReturnStatus(bool status, const string &msg, PbErrorCode error_code, bool enable_log) const
{
// Do not log twice if logging has already been done in the localized error handling above
if (log && !status && !msg.empty()) {
if (enable_log && !status && !msg.empty()) {
s2p_logger.error(msg);
}

Expand Down
4 changes: 2 additions & 2 deletions cpp/initiator/initiator_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ using namespace s2p_util;
using namespace initiator_util;

int InitiatorExecutor::Execute(ScsiCommand cmd, span<uint8_t> cdb, span<uint8_t> buffer, int length, int timeout,
bool log)
bool enable_log)
{
cdb[0] = static_cast<uint8_t>(cmd);
return Execute(cdb, buffer, length, timeout, log);
return Execute(cdb, buffer, length, timeout, enable_log);
}

int InitiatorExecutor::Execute(span<uint8_t> cdb, span<uint8_t> buffer, int length, int timeout, bool enable_log)
Expand Down

0 comments on commit 777aa00

Please sign in to comment.