changed logging level in couple of logs 32/8332/1
authorJaska Uimonen <jaska.uimonen@helsinki.fi>
Thu, 25 Apr 2013 18:10:42 +0000 (21:10 +0300)
committerJaska Uimonen <jaska.uimonen@helsinki.fi>
Fri, 16 Aug 2013 06:19:02 +0000 (09:19 +0300)
murphy/discover.c
murphy/multiplex.c
murphy/murphyif.c
murphy/scripting.c
murphy/stream-state.c

index e38d351..6e2c7b6 100644 (file)
@@ -886,7 +886,7 @@ void pa_discover_preroute_sink_input(struct userdata *u,
             pa_utils_set_resource_properties(pl, resdef);
 
             if (pa_stream_state_start_corked(u, data, resdef)) {
-                pa_log("start corked");
+                pa_log_debug("start corked");
             }
         }
         pa_utils_set_stream_routing_properties(pl, type, data->sink);
@@ -1081,7 +1081,7 @@ void pa_discover_remove_sink_input(struct userdata *u, pa_sink_input *sinp)
 
     name = pa_utils_get_sink_input_name(sinp);
 
-    pa_log("sink-input '%s' going to be destroyed", name);
+    pa_log_debug("sink-input '%s' going to be destroyed", name);
 
     had_properties = pa_utils_unset_stream_routing_properties(sinp->proplist);
 
@@ -1404,7 +1404,7 @@ void pa_discover_remove_source_output(struct userdata  *u,
 
     name = pa_utils_get_source_output_name(sout);
 
-    pa_log("source-output '%s' going to be destroyed", name);
+    pa_log_debug("source-output '%s' going to be destroyed", name);
 
     if (!(node = pa_discover_remove_node_from_ptr_hash(u, sout)))
         pa_log_debug("can't find node for source-output (name '%s')", name);
index 8fa9956..9335044 100644 (file)
@@ -230,7 +230,7 @@ pa_bool_t pa_multiplex_add_default_route(pa_core    *core,
     pa_assert(sink);
 
     if (!(module = pa_idxset_get_by_index(core->modules, mux->module_index)))
-        pa_log("module %u is gone", mux->module_index);
+        pa_log_debug("module %u is gone", mux->module_index);
     else {
         pa_assert_se((u = module->userdata));
 
@@ -270,7 +270,7 @@ pa_bool_t pa_multiplex_remove_default_route(pa_core *core,
     pa_assert(mux);
 
     if (!(module = pa_idxset_get_by_index(core->modules, mux->module_index)))
-        pa_log("module %u is gone", mux->module_index);
+        pa_log_debug("module %u is gone", mux->module_index);
     else if ((idx = mux->defstream_index) == PA_IDXSET_INVALID)
         pa_log_debug("mux %u do not have default stream", mux->module_index);
     else if (!(sinp = pa_idxset_get_by_index(core->sink_inputs, idx)))
@@ -307,7 +307,7 @@ pa_bool_t pa_multiplex_change_default_route(pa_core    *core,
     pa_assert(sink);
 
     if (!(module = pa_idxset_get_by_index(core->modules, mux->module_index)))
-        pa_log("module %u is gone", mux->module_index);
+        pa_log_debug("module %u is gone", mux->module_index);
     else if ((idx = mux->defstream_index) == PA_IDXSET_INVALID)
         pa_log_debug("mux %u do not have default stream", mux->module_index);
     else if (!(sinp = pa_idxset_get_by_index(core->sink_inputs, idx)))
@@ -341,7 +341,7 @@ pa_bool_t pa_multiplex_add_explicit_route(pa_core    *core,
     pa_assert(sink);
 
     if (!(module = pa_idxset_get_by_index(core->modules, mux->module_index)))
-        pa_log("module %u is gone", mux->module_index);
+        pa_log_debug("module %u is gone", mux->module_index);
     else {
         pa_assert_se((u = module->userdata));
 
@@ -380,7 +380,7 @@ pa_bool_t pa_multiplex_remove_explicit_route(pa_core    *core,
     pa_assert(sink);
 
     if (!(module = pa_idxset_get_by_index(core->modules, mux->module_index)))
-        pa_log("module %u is gone", mux->module_index);
+        pa_log_debug("module %u is gone", mux->module_index);
     else {
         pa_assert_se((u = module->userdata));
 
@@ -414,7 +414,7 @@ pa_bool_t pa_multiplex_duplicate_route(pa_core       *core,
                  mux->module_index);
 
     if (!(module = pa_idxset_get_by_index(core->modules,mux->module_index)))
-        pa_log("module %u is gone", mux->module_index);
+        pa_log_debug("module %u is gone", mux->module_index);
     else {
         pa_assert_se((u = module->userdata));
 
@@ -450,7 +450,7 @@ int pa_multiplex_no_of_routes(pa_core *core, pa_muxnode *mux)
     pa_assert(mux);
 
     if (!(module = pa_idxset_get_by_index(core->modules,mux->module_index))) {
-        pa_log("module %u is gone", mux->module_index);
+        pa_log_debug("module %u is gone", mux->module_index);
         return -1;
     }
 
index 21a280d..9c36cc3 100644 (file)
@@ -2137,8 +2137,6 @@ static rset_hash *rset_hashmap_put(struct userdata *u,
     rh->nodes[i+0] = node;
     rh->nodes[i+1] = NULL;
 
-    pa_log("    depth: %u", rh->nnode);
-
     return rh;
 }
 
@@ -2176,8 +2174,6 @@ static int rset_hashmap_remove(struct userdata *u,
 
     if ((rh = pa_hashmap_get(rif->nodes.rsetid, rsetid))) {
 
-        pa_log("    depth: %u", rh->nnode);
-
         for (i = 0;  i < rh->nnode;  i++) {
             if (node == rh->nodes[i]) {
                 if (rh->nnode <= 1) {
index f3e616d..6167a83 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * module-murphy-ivi -- PulseAudio module for providing audio routing support
+ * Module-murphy-ivi -- PulseAudio module for providing audio routing support
  * Copyright (c) 2012, Intel Corporation.
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -700,7 +700,7 @@ static int import_link(lua_State *L)
         }
     }
 
-    pa_log("userdata: type:%d", col->type);
+    pa_log_debug("userdata: type:%d", col->type);
 
     lua_pushlightuserdata(L, col);
 
index c168ca5..5dbef7f 100644 (file)
@@ -84,12 +84,12 @@ void pa_stream_state_change(struct userdata *u, mir_node *node, int req)
             switch (req) {
             case PA_STREAM_KILL:
             case PA_STREAM_BLOCK:
-                pa_log("mute '%s'", node->amname);
+                pa_log_debug("mute '%s'", node->amname);
                 pa_sink_input_set_mute(sinp, TRUE, FALSE);
                 break;
                 
             case PA_STREAM_RUN:
-                pa_log("unmute '%s'", node->amname);
+                pa_log_debug("unmute '%s'", node->amname);
                 pa_sink_input_set_mute(sinp, FALSE, FALSE);
                 break;
                 
@@ -99,7 +99,7 @@ void pa_stream_state_change(struct userdata *u, mir_node *node, int req)
             }
         }
         else {
-            pa_log("no enforcement for loopback on '%s'", node->amname);
+            pa_log_debug("no enforcement for loopback on '%s'", node->amname);
             sout = pa_idxset_get_by_index(core->source_outputs,
                                           loop->source_output_index);
             pa_assert(sout);
@@ -112,17 +112,17 @@ void pa_stream_state_change(struct userdata *u, mir_node *node, int req)
 
             switch (req) {
             case PA_STREAM_KILL:
-                pa_log("killing '%s'", node->amname);
+                pa_log_debug("killing '%s'", node->amname);
                 sinp->kill(sinp);
                 break;
                 
             case PA_STREAM_BLOCK:
-                pa_log("blocking '%s'", node->amname);
+                pa_log_debug("blocking '%s'", node->amname);
                 sink_input_block(sinp, TRUE);
                 break;
                 
             case PA_STREAM_RUN:
-                pa_log("unblock '%s'", node->amname);
+                pa_log_debug("unblock '%s'", node->amname);
                 sink_input_block(sinp, FALSE);
                 break;
                 
@@ -132,7 +132,7 @@ void pa_stream_state_change(struct userdata *u, mir_node *node, int req)
             }
         }
         else {
-            pa_log("no enforcement for stream '%s'", node->amname);
+            pa_log_debug("no enforcement for stream '%s'", node->amname);
             sout = pa_idxset_get_by_index(core->source_outputs, node->paidx);
             pa_assert(sout);
         }