aboutsummaryrefslogtreecommitdiff
path: root/src/regex/gnunet-regex-simulation-profiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/gnunet-regex-simulation-profiler.c')
-rw-r--r--src/regex/gnunet-regex-simulation-profiler.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regex/gnunet-regex-simulation-profiler.c b/src/regex/gnunet-regex-simulation-profiler.c
index 6637bafed..9adde99bd 100644
--- a/src/regex/gnunet-regex-simulation-profiler.c
+++ b/src/regex/gnunet-regex-simulation-profiler.c
@@ -305,6 +305,7 @@ do_abort (void *cls)
305 GNUNET_SCHEDULER_shutdown (); 305 GNUNET_SCHEDULER_shutdown ();
306} 306}
307 307
308
308/** 309/**
309 * Iterator over all states that inserts each state into the MySQL db. 310 * Iterator over all states that inserts each state into the MySQL db.
310 * 311 *
@@ -369,7 +370,7 @@ regex_iterator (void *cls,
369 return; 370 return;
370 } 371 }
371 372
372 if ((-1 != total) &&(total > 0) ) 373 if ((-1 != total) && (total > 0) )
373 { 374 {
374 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Total: %llu (%s, %s)\n", 375 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Total: %llu (%s, %s)\n",
375 (unsigned long long) total, 376 (unsigned long long) total,
@@ -409,7 +410,7 @@ regex_iterator (void *cls,
409 num_merged_states++; 410 num_merged_states++;
410 } 411 }
411 412
412 if ((GNUNET_SYSERR == result) || ((1 != result) &&(0 != result) )) 413 if ((GNUNET_SYSERR == result) || ((1 != result) && (0 != result) ))
413 { 414 {
414 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 415 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
415 "Error executing prepared mysql statement for edge: Affected rows: %i, expected 0 or 1!\n", 416 "Error executing prepared mysql statement for edge: Affected rows: %i, expected 0 or 1!\n",
@@ -433,7 +434,7 @@ regex_iterator (void *cls,
433 stmt_handle, 434 stmt_handle,
434 params_stmt); 435 params_stmt);
435 436
436 if ((1 != result) &&(0 != result) ) 437 if ((1 != result) && (0 != result) )
437 { 438 {
438 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 439 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
439 "Error executing prepared mysql statement for edge: Affected rows: %i, expected 0 or 1!\n", 440 "Error executing prepared mysql statement for edge: Affected rows: %i, expected 0 or 1!\n",