Skip to content

Commit

Permalink
Merge pull request #1752 from SChernykh/dev
Browse files Browse the repository at this point in the history
Print error message when MSR mod fails
  • Loading branch information
xmrig authored Jun 26, 2020
2 parents 2da5d31 + 59313d9 commit bbd9945
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/crypto/rx/Rx_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ void xmrig::Rx::msrInit(const RxConfig &config)
if (wrmsr(preset, config.rdmsr())) {
LOG_NOTICE(CLEAR "%s" GREEN_BOLD_S "register values for \"%s\" preset has been set successfully" BLACK_BOLD(" (%" PRIu64 " ms)"), tag, config.msrPresetName(), Chrono::steadyMSecs() - ts);
}
else {
LOG_ERR(CLEAR "%s" RED_BOLD_S "FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW", tag);
}
}


Expand Down
3 changes: 3 additions & 0 deletions src/crypto/rx/Rx_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ void xmrig::Rx::msrInit(const RxConfig &config)
if (wrmsr(preset, config.rdmsr())) {
LOG_NOTICE(CLEAR "%s" GREEN_BOLD_S "register values for \"%s\" preset has been set successfully" BLACK_BOLD(" (%" PRIu64 " ms)"), tag, config.msrPresetName(), Chrono::steadyMSecs() - ts);
}
else {
LOG_ERR(CLEAR "%s" RED_BOLD_S "FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW", tag);
}
}


Expand Down

0 comments on commit bbd9945

Please sign in to comment.