diff --git a/lightningd/closing_control.c b/lightningd/closing_control.c index d20708757..9768ae94e 100644 --- a/lightningd/closing_control.c +++ b/lightningd/closing_control.c @@ -79,7 +79,7 @@ static bool closing_fee_is_acceptable(struct lightningd *ld, if (amount_sat_less(fee, min_fee)) { log_debug(channel->log, "... That's below our min %s" " for weight %"PRIu64" at feerate %u", - type_to_string(tmpctx, struct amount_sat, &fee), + type_to_string(tmpctx, struct amount_sat, &min_fee), weight, min_feerate); return false; } diff --git a/lightningd/invoice.c b/lightningd/invoice.c index 4101853b0..eb73a8214 100644 --- a/lightningd/invoice.c +++ b/lightningd/invoice.c @@ -443,7 +443,7 @@ invoice_check_payment(const tal_t *ctx, log_debug(ld->log, "Attept to pay %s with amount %s > %s", type_to_string(tmpctx, struct sha256, &details->rhash), - type_to_string(tmpctx, struct amount_msat, details->msat), + type_to_string(tmpctx, struct amount_msat, &msat), type_to_string(tmpctx, struct amount_msat, &twice)); /* BOLT #4: *