diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-30 09:35:43 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-07-31 18:49:47 +0200 |
commit | 0e448f8d358b067319143ab64103bd5870adce42 (patch) | |
tree | aa633cf847ba0bd1a84667fb2dc25d4d54b449df /lib | |
parent | 8792de7a16239214bf0863182ee5f1d85d89982c (diff) | |
download | samba-0e448f8d358b067319143ab64103bd5870adce42.tar.gz samba-0e448f8d358b067319143ab64103bd5870adce42.tar.xz samba-0e448f8d358b067319143ab64103bd5870adce42.zip |
debug: Fix blank line endings
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 99ce441526..9c1b76a529 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -215,7 +215,7 @@ char *debug_list_class_names_and_levels(void) unsigned int i; /* prepare strings */ for (i = 0; i < debug_num_classes; i++) { - buf = talloc_asprintf_append(buf, + buf = talloc_asprintf_append(buf, "%s:%d%s", classname_table[i], DEBUGLEVEL_CLASS[i], @@ -715,12 +715,12 @@ void check_log_size( void ) if (state.fd > 2 && (fstat(state.fd, &st) == 0 && st.st_size > maxlog)) { char *name = NULL; - + if (asprintf(&name, "%s.old", state.debugf ) < 0) { return; } (void)rename(state.debugf, name); - + if (!reopen_logs_internal()) { /* We failed to reopen a log - continue using the old name. */ (void)rename(name, state.debugf); |