From 29d2612c6d05bcdf087603ff1bd471ec42eaa501 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sun, 21 Aug 2016 23:04:00 +1000 Subject: [PATCH] ckdb - log the workinfo height for close to block, shares --- src/ckdb.h | 2 +- src/ckdb_dbio.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 936daf1c..32b158be 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -58,7 +58,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.7" -#define CKDB_VERSION DB_VERSION"-2.413" +#define CKDB_VERSION DB_VERSION"-2.414" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_dbio.c b/src/ckdb_dbio.c index 393a8b2e..f45c8aab 100644 --- a/src/ckdb_dbio.c +++ b/src/ckdb_dbio.c @@ -3546,9 +3546,9 @@ static bool shares_process(PGconn *conn, SHARES *shares, K_ITEM *wi_item, 100.0 * pool.diffacc / workinfo->diff_target); } - LOGWARNING("%s %s Diff %.1f%% (%.0f/%.1f) %s " - "Pool %.1f%s%s", - block ? "BLOCK!" : "Share", + LOGWARNING("%s (%"PRIu32") %s Diff %.1f%% (%.0f/%.1f) " + "%s Pool %.1f%s%s", + block ? "BLOCK!" : "Share", workinfo->height, (sta == NULL) ? "ok" : sta, 100.0 * shares->sdiff / workinfo->diff_target, shares->sdiff, workinfo->diff_target,