Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Sep 24, 2024
1 parent 1b3d9ff commit 307c6dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prover_slow.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ form GenerateWesolowski(form &y, form &x_init,
void logit(char *sz)
{
FILE *f;
f = fopen("x.log", "a+");
f = fopen("wjb.log", "a+");
if (f == NULL)
return;
fprintf(f, sz);
Expand Down Expand Up @@ -117,7 +117,7 @@ std::vector<uint8_t> ProveSlow(integer& D, form& x, uint64_t num_iterations, std
if ((num_iterations&0xffff)==0) {
struct stat buffer;
char sz[200];
sprintf(sz,"num_iterations %llu shutdown_file_path.c_str() %s",num_iterations,shutdown_file_path.c_str())
sprintf(sz,"num_iterations %llu shutdown_file_path.c_str() %s",num_iterations,shutdown_file_path.c_str());
logit(sz);
if ((shutdown_file_path!="") && (stat (shutdown_file_path.c_str(), &buffer) != 0))
logit("aborting");
Expand Down

0 comments on commit 307c6dd

Please sign in to comment.