| 573 | #endif /* DEVELOPER */ |
| 574 | |
| 575 | u8 *hsmd_status_bad_request(struct hsmd_client *client, const u8 *msg, const char *error) |
| 576 | { |
| 577 | /* Extract the pointer to the hsmd representation of the |
| 578 | * client which has access to the underlying connection. */ |
| 579 | struct client *c = (struct client*)client->extra; |
| 580 | bad_req_fmt(c->conn, c, msg, "%s", error); |
| 581 | |
| 582 | /* We often use `return hsmd_status_bad_request` to drop out, and NULL |
| 583 | * means we encountered an error. */ |
| 584 | return NULL; |
| 585 | } |
| 586 | |
| 587 | void hsmd_status_fmt(enum log_level level, const struct node_id *peer, |
| 588 | const char *fmt, ...) |
no test coverage detected