]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix formatting in debug mode
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Dec 2010 16:10:15 +0000 (10:10 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Dec 2010 16:10:15 +0000 (10:10 -0600)
libs/stfu/stfu.c

index 4965b12e347760a0f30e488d92b8ed93a5a13a42..2ffb86fdb61ff9e91a8b536bdffa37230833a17c 100644 (file)
@@ -664,20 +664,21 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
         }
 
         if (stfu_log != null_logger && i->debug) {        
+            stfu_log(STFU_LOG_EMERG, "%s ", i->name);
             for(y = 0; y < i->out_queue->array_size; y++) {
-                if ((y % 5) == 0) stfu_log(STFU_LOG_EMERG, "\n%s", i->name);
+                if ((y % 5) == 0) stfu_log(STFU_LOG_EMERG, "\n%s ", i->name);
                 frame = &i->out_queue->array[y];
                 stfu_log(STFU_LOG_EMERG, "%u:%u\t", frame->ts, frame->ts / i->samples_per_packet);
             }
-            stfu_log(STFU_LOG_EMERG, "%s\n", i->name);
+            stfu_log(STFU_LOG_EMERG, "\n%s ", i->name);
 
 
             for(y = 0; y < i->in_queue->array_size; y++) {
-                if ((y % 5) == 0) stfu_log(STFU_LOG_EMERG, "\n%s", i->name);
+                if ((y % 5) == 0) stfu_log(STFU_LOG_EMERG, "\n%s ", i->name);
                 frame = &i->in_queue->array[y];
                 stfu_log(STFU_LOG_EMERG, "%u:%u\t", frame->ts, frame->ts / i->samples_per_packet);
             }
-            stfu_log(STFU_LOG_EMERG, "%s\n\n\n", i->name);
+            stfu_log(STFU_LOG_EMERG, "\n%s\n\n\n", i->name);
 
         }