| 202 | } |
| 203 | |
| 204 | static void complain_deprecated(const char *feature, |
| 205 | bool allowing, |
| 206 | struct command *cmd) |
| 207 | { |
| 208 | if (!allowing) { |
| 209 | /* Mild log message for disallowing */ |
| 210 | plugin_log(cmd->plugin, LOG_DBG, |
| 211 | "Note: disallowing deprecated %s for %s", |
| 212 | feature, cmd->id); |
| 213 | } else { |
| 214 | plugin_log(cmd->plugin, LOG_BROKEN, |
| 215 | "DEPRECATED API USED: %s by %s", |
| 216 | feature, cmd->id); |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | bool command_deprecated_in_named_ok(struct command *cmd, |
| 221 | const char *cmdname, |
nothing calls this directly
no test coverage detected