summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/util
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-08-07 13:40:13 +1000
committerAndrew Tridgell <tridge@samba.org>2007-08-07 13:40:13 +1000
commit8a81a03b9eb3c89474bd46cd872269543627706c (patch)
tree52c74ab5b33349dff1a59a07b93549cc97897a7c /ctdb/lib/util
parent5e0215a0be12db320dc142d5283fbb90fa7da65a (diff)
parentd69055b789ac308ae35e157279f42969c7b9e9b3 (diff)
downloadsamba-8a81a03b9eb3c89474bd46cd872269543627706c.tar.gz
samba-8a81a03b9eb3c89474bd46cd872269543627706c.tar.xz
samba-8a81a03b9eb3c89474bd46cd872269543627706c.zip
merge from ronnie
(This used to be ctdb commit e06f70f064e39f1a4a394f00b81b6b1d215534d4)
Diffstat (limited to 'ctdb/lib/util')
-rw-r--r--ctdb/lib/util/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/lib/util/debug.c b/ctdb/lib/util/debug.c
index 1d709248be..78d465d52b 100644
--- a/ctdb/lib/util/debug.c
+++ b/ctdb/lib/util/debug.c
@@ -39,7 +39,7 @@ void do_debug(const char *format, ...)
strftime(tbuf,sizeof(tbuf)-1,"%Y/%m/%d %H:%M:%S", tm);
- printf("%s.%06u [%5u]: %s", tbuf, (unsigned)t.tv_usec, (unsigned)getpid(), s);
- fflush(stdout);
+ fprintf(stderr, "%s.%06u [%5u]: %s", tbuf, (unsigned)t.tv_usec, (unsigned)getpid(), s);
+ fflush(stderr);
free(s);
}