}
}
-#if LOG_MRP
static char *mrp_state_string(int s)
{
switch (s) {
else
return "??";
}
-#endif /* #if LOG_MRP */
static int client_lookup(client_t * list, struct sockaddr_in *newclient)
{
mrp_lvatimer_start(mrp_db);
break;
default:
- printf("mrp_lvatimer_fsm:unexpected event (%d)\n", event);
+ printf("mrp_lvatimer_fsm:unexpected event (%d), state %s\n",
+ event, mrp_lvatimer_state_string(la_state));
return -1;
break;
}
}
break;
default:
- printf("mrp_periodictimer_fsm:unexpected event (%d)\n", event);
+ printf("mrp_periodictimer_fsm:unexpected event (%d), state %s\n",
+ event, mrp_lvatimer_state_string(p_state));
return;
break;
}
/* ignore on soon to be deleted attributes */
break;
default:
- printf("mrp_registrar_fsm:unexpected event %s (%d)\n",
- mrp_event_string(event), event);
+ printf("mrp_registrar_fsm:unexpected event %s (%d), state %s\n",
+ mrp_event_string(event), event,
+ mrp_state_string(mrp_state));
return -1;
break;
}