diff options
author | Andrew Elder <aelder@audioscience.com> | 2013-01-15 19:19:54 -0500 |
---|---|---|
committer | Andrew Elder <aelder@audioscience.com> | 2013-01-15 19:19:54 -0500 |
commit | ba986381f03eb3d5506a18668a1ab77ca4dc5100 (patch) | |
tree | ab389bec0746682b2822b2e8f7ae5d80eeb0feca | |
parent | df04ba997746c84e06ff96a36f01b071631c54ad (diff) | |
download | Open-AVB-ba986381f03eb3d5506a18668a1ab77ca4dc5100.tar.gz |
mrp: debug update (no functional change)
-rw-r--r-- | daemons/mrpd/mrp.c | 2 | ||||
-rw-r--r-- | daemons/mrpd/mrp.h | 1 | ||||
-rw-r--r-- | daemons/mrpd/mvrp.c | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/daemons/mrpd/mrp.c b/daemons/mrpd/mrp.c index 9174c13a..0fabc50a 100644 --- a/daemons/mrpd/mrp.c +++ b/daemons/mrpd/mrp.c @@ -44,7 +44,7 @@ /* state machine controls */ int p2pmac; -static char *mrp_event_string(int e) +char *mrp_event_string(int e) { switch (e) { case MRP_EVENT_BEGIN: diff --git a/daemons/mrpd/mrp.h b/daemons/mrpd/mrp.h index b5b3413e..631b5bd4 100644 --- a/daemons/mrpd/mrp.h +++ b/daemons/mrpd/mrp.h @@ -192,6 +192,7 @@ int mrp_client_add(client_t ** list, struct sockaddr_in *newclient); int mrp_client_delete(client_t ** list, struct sockaddr_in *newclient); int mrp_init(void); +char *mrp_event_string(int e); int mrp_jointimer_stop(struct mrp_database *mrp_db); int mrp_jointimer_start(struct mrp_database *mrp_db); int mrp_lvtimer_start(struct mrp_database *mrp_db); diff --git a/daemons/mrpd/mvrp.c b/daemons/mrpd/mvrp.c index 85b60259..722d3f4f 100644 --- a/daemons/mrpd/mvrp.c +++ b/daemons/mrpd/mvrp.c @@ -143,6 +143,11 @@ int mvrp_event(int event, struct mvrp_attribute *rattrib) struct mvrp_attribute *attrib; int rc; + +#if LOG_MVRP + mrpd_log_printf("MVRP event %s\n", mrp_event_string(event)); +#endif + switch (event) { case MRP_EVENT_LVATIMER: mrp_lvatimer_stop(&(MVRP_db->mrp_db)); |