Switch to unified view

a/src/utils/debuglog.cpp b/src/utils/debuglog.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid [] = "@(#$Id: debuglog.cpp,v 1.1 2005-11-12 14:24:33 dockes Exp $  (C) 2002 OKYZ";
2
static char rcsid [] = "@(#$Id: debuglog.cpp,v 1.2 2005-11-23 10:15:18 dockes Exp $  (C) 2002 OKYZ";
3
#endif
3
#endif
4
#ifndef TEST_DEBUGLOG
4
#ifndef TEST_DEBUGLOG
5
5
6
#define __USE_GNU
6
#define __USE_GNU
7
#include <stdio.h>
7
#include <stdio.h>
...
...
171
    writer->put(dts);
171
    writer->put(dts);
172
    }
172
    }
173
    char buf[100];
173
    char buf[100];
174
    sprintf(buf, ":%d:", lev);
174
    sprintf(buf, ":%d:", lev);
175
    writer->put(buf);
175
    writer->put(buf);
176
#if DEBUGLOG_SHOW_PID
177
    sprintf(buf, "%d:", getpid());
178
    writer->put(buf);
179
#endif
176
#if DEBUGLOG_USE_THREADS
180
#if DEBUGLOG_SHOW_THREAD
177
    sprintf(buf, "%lx:", (unsigned long)pthread_self());
181
    sprintf(buf, "%lx:", (unsigned long)pthread_self());
178
    writer->put(buf);
182
    writer->put(buf);
179
#endif
183
#endif
180
    writer->put(f);
184
    writer->put(f);
181
    sprintf(buf, ":%d:", line);
185
    sprintf(buf, ":%d:", line);