| 171 | type, id, p->partid, txt); |
| 172 | } |
| 173 | static void |
| 174 | paymod_err(struct payment *p, const char *fmt, ...) |
| 175 | { |
| 176 | const char *type; |
| 177 | u64 id; |
| 178 | char *txt; |
| 179 | va_list ap; |
| 180 | |
| 181 | va_start(ap, fmt); |
| 182 | txt = tal_vfmt(tmpctx, fmt, ap); |
| 183 | va_end(ap); |
| 184 | |
| 185 | paymod_log_header(p, &type, &id); |
| 186 | plugin_err(p->plugin, "%s %"PRIu64" partid %"PRIu32": %s", |
| 187 | type, id, p->partid, txt); |
| 188 | } |
| 189 | |
| 190 | /* Generic handler for RPC failures that should end up failing the payment. */ |
| 191 | static struct command_result *payment_rpc_failure(struct command *cmd, |
no test coverage detected