mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
FS-9924: Removed extra space in source files
This commit is contained in:
1 parent
60d4e87487
commit
df1ab07ca4
455 files changed
+9699
-9698
No files matched your search
@@ -17,8 +17,8 @@
|
||||
<param name="uuid" value="true" />
|
||||
</settings>
|
||||
<mappings>
|
||||
<!--
|
||||
name can be a file name, function name or 'all'
|
||||
<!--
|
||||
name can be a file name, function name or 'all'
|
||||
value is one or more of debug,info,notice,warning,err,crit,alert,all
|
||||
Please see comments in console.conf.xml for more information
|
||||
-->
|
||||
|
||||
@@ -168,7 +168,7 @@ static switch_status_t mod_logfile_rotate(logfile_profile_t *profile)
|
||||
}
|
||||
|
||||
sprintf((char *) to_filename, "%s.%i", profile->logfile, i);
|
||||
|
||||
|
||||
if (switch_file_exists(to_filename, pool) == SWITCH_STATUS_SUCCESS) {
|
||||
if ((status = switch_file_remove(to_filename, pool)) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error removing log %s [%s]\n", to_filename, strerror(errno));
|
||||
@@ -296,15 +296,15 @@ static switch_status_t process_node(const switch_log_node_t *node, switch_log_le
|
||||
char *dup = strdup(node->data);
|
||||
char *lines[100];
|
||||
int argc, i;
|
||||
|
||||
|
||||
argc = switch_split(dup, '\n', lines);
|
||||
for (i = 0; i < argc; i++) {
|
||||
switch_snprintf(buf, sizeof(buf), "%s %s\n", node->userdata, lines[i]);
|
||||
mod_logfile_raw_write(profile, buf);
|
||||
mod_logfile_raw_write(profile, buf);
|
||||
}
|
||||
|
||||
|
||||
free(dup);
|
||||
|
||||
|
||||
} else {
|
||||
mod_logfile_raw_write(profile, node->data);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user