summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorPavel Tvrdík <pawel.tvrdik@gmail.com>2016-03-09 11:03:49 +0100
committerPavel Tvrdík <pawel.tvrdik@gmail.com>2016-03-10 16:07:44 +0100
commit43fd8fae526cbc62093a32bda572c93fa4055e98 (patch)
treeb728a8f31d41eabc97e62843dbfdfd72c56f9174 /nest
parent062d18fdb1f48bf7e3b10907b417d4568ba8cf3f (diff)
nest/proto fix local_debug mode
Diffstat (limited to 'nest')
-rw-r--r--nest/proto.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 5b55f9ee..f712fe5f 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -39,6 +39,12 @@ static int graceful_restart_state;
static u32 graceful_restart_locks;
static char *p_states[] = { "DOWN", "START", "UP", "STOP" };
+static char *cs_states[] = {
+ [CS_DOWN] = "DOWN",
+ [CS_START] = "START",
+ [CS_UP] = "UP",
+ [CS_FLUSHING] = "FLUSHING"
+};
extern struct protocol proto_unix_iface;
@@ -313,7 +319,7 @@ channel_set_state(struct channel *c, uint state)
uint cs = c->channel_state;
uint es = c->export_state;
- DBG("%s reporting state transition %s/%s -> */%s\n", p->name, c_states[cs], p_states[ops], p_states[ps]);
+ DBG("%s reporting channel %s state transition %s -> %s\n", c->proto->name, c->name, cs_states[cs], cs_states[state]);
if (state == cs)
return;