Skip to content

Commit

Permalink
Add missing log newline; .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
preda committed Oct 23, 2020
1 parent f526ea8 commit 1fa3db1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ gpuowl.exe
__pycache__
core
pm1/pm1
D
comgr.log
\#*\#
2 changes: 1 addition & 1 deletion File.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class File {
if (!ok) { return ""; } // EOF or error
string line = buf;
if (line.empty() || line.back() != '\n') {
log("%s : line \"%s\" does not end with a newline", name.c_str(), line.c_str());
log("%s : line \"%s\" does not end with a newline\n", name.c_str(), line.c_str());
throw "lines must end with newline";
}
return line;
Expand Down
2 changes: 1 addition & 1 deletion Gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ PRPResult Gpu::isPrimePRP(const Args &args, const Task& task) {
if (!startK) { startK = k; }

if (power == u32(-1)) {
power = ProofSet::effectivePower(args.tmpDir, E, args.proofPow, startK);
power = ProofSet::effectivePower(args.tmpDir, E, args.proofPow, startK);
if (!power) {
log("Proof disabled because of missing checkpoints\n");
} else if (power != args.proofPow) {
Expand Down

0 comments on commit 1fa3db1

Please sign in to comment.