]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
cosmetic pickyness of me
authorBrian West <brian@freeswitch.org>
Fri, 10 Oct 2008 03:22:34 +0000 (03:22 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 10 Oct 2008 03:22:34 +0000 (03:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9930 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c

index b5940b96861424d899033c178081590bbc24f2ed..003685d6f846d7db1c8bbeb59d3c6763cc48a561 100644 (file)
@@ -833,7 +833,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_running_state(
                                                                                                                                                                const char *file, const char *func, int line)
 {
        switch_mutex_lock(channel->flag_mutex);
-       switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, "%s Running State Change %s\n", channel->name, state_names[state]);
+       switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, "(%s) Running State Change %s\n", channel->name, state_names[state]);
        channel->running_state = state;
 
        if (channel->state_flags) {
@@ -1065,7 +1065,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_state(switch_c
        }
 
        if (ok) {
-               switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, "%s State Change %s -> %s\n",
+               switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, "(%s) State Change %s -> %s\n",
                                                  channel->name, state_names[last_state], state_names[state]);
                switch_mutex_lock(channel->flag_mutex);
                channel->state = state;
@@ -1080,7 +1080,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_state(switch_c
                }
        } else {
                switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_WARNING,
-                                                 "%s Invalid State Change %s -> %s\n", channel->name, state_names[last_state], state_names[state]);
+                                                 "(%s) Invalid State Change %s -> %s\n", channel->name, state_names[last_state], state_names[state]);
                /* we won't tolerate an invalid state change so we can make sure we are as robust as a nice cup of dark coffee! */
                /* not cool lets crash this bad boy and figure out wtf is going on */
                switch_assert(channel->state >= CS_HANGUP);