diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-07-12 13:03:52 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-07-12 18:47:57 +0000 |
commit | 55088b76cec00674d2becf7ced4723c5998a0a42 (patch) | |
tree | 9d4fc705697b23bf2cf11a1b0b067cd41e1fa44e /src | |
parent | cdd05816dae6d33c6165c7cb4f118b8e4b7c6ab0 (diff) |
ctrl: Log CMD TYPE on invalid ID number
Change-Id: Ia890d4b841ef02342cc1cf7f5926866b040dc8ab
Diffstat (limited to 'src')
-rw-r--r-- | src/ctrl/control_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |