Reduced fake MDL-ERROR (Z) message severity to be visible only when debugging enabled.

git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1929 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Richard Mudgett 2010-08-30 20:49:11 +00:00
parent 0089f4777a
commit ab32336b09

8
q921.c
View File

@ -1668,6 +1668,14 @@ static void q921_mdl_error(struct pri *ctrl, char error)
pri_error(ctrl, "TEI=%d MDL-ERROR (K): FRMR in state %d(%s)\n",
ctrl->tei, ctrl->q921_state, q921_state2str(ctrl->q921_state));
break;
case 'Z':
if (is_debug_q921_state) {
/* Fake MDL-ERROR to kick start PTP L2 link back up. */
pri_message(ctrl,
"TEI=%d MDL-ERROR (Z): Kick starting L2 link in state %d(%s)\n",
ctrl->tei, ctrl->q921_state, q921_state2str(ctrl->q921_state));
}
break;
default:
pri_message(ctrl, "TEI=%d MDL-ERROR (%c): in state %d(%s)\n",
ctrl->tei, error, ctrl->q921_state, q921_state2str(ctrl->q921_state));