From 55088b76cec00674d2becf7ced4723c5998a0a42 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 12 Jul 2018 13:03:52 +0200 Subject: ctrl: Log CMD TYPE on invalid ID number Change-Id: Ia890d4b841ef02342cc1cf7f5926866b040dc8ab --- src/ctrl/control_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ctrl') diff --git a/src/ctrl/control_cmd.c b/src/ctrl/control_cmd.c index bff4d17d..c5924b2b 100644 --- a/src/ctrl/control_cmd.c +++ b/src/ctrl/control_cmd.c @@ -363,10 +363,11 @@ struct ctrl_cmd *ctrl_cmd_parse2(void *ctx, struct msgb *msg) } if (!id_str_valid(tmp)) { + LOGP(DLCTRL, LOGL_NOTICE, "Invalid %s message ID number: \"%s\"\n", + get_value_string(ctrl_type_vals, cmd->type), osmo_escape_str(tmp, -1)); cmd->type = CTRL_TYPE_ERROR; cmd->id = "err"; cmd->reply = "Invalid message ID number"; - LOGP(DLCTRL, LOGL_NOTICE, "Invalid message ID number: \"%s\"\n", osmo_escape_str(tmp, -1)); goto err; } cmd->id = talloc_strdup(cmd, tmp); -- cgit v1.2.3