projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a9df420
)
* fixed naming crash with the new libcitadel
author
Wilfried Göesgens
<willi@citadel.org>
Sun, 13 Jul 2008 09:39:08 +0000
(09:39 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sun, 13 Jul 2008 09:39:08 +0000
(09:39 +0000)
citadel/ecrash.c
patch
|
blob
|
history
diff --git
a/citadel/ecrash.c
b/citadel/ecrash.c
index 29223492680fb3cd5a53830bc41a83ba25d685dd..6a8ef3a0c1ce905151df7664d5f85ed6ec514474 100644
(file)
--- a/
citadel/ecrash.c
+++ b/
citadel/ecrash.c
@@
-45,7
+45,7
@@
static int gbl_backtraceDoneFlag = 0;
static void *stack_frames[50];
static size_t size, NThread;
static char **strings;
static void *stack_frames[50];
static size_t size, NThread;
static char **strings;
-static char St
r
Buf[SIZ];
+static char St
atic
Buf[SIZ];
/*
* Private structures for our thread list
/*
* Private structures for our thread list
@@
-174,8
+174,8
@@
static void outputPrintf(char *format, ...)
if (enable_syslog)
{
if (enable_syslog)
{
- snprintf (St
r
Buf, SIZ, format, ap);
- syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, St
r
Buf);
+ snprintf (St
atic
Buf, SIZ, format, ap);
+ syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, St
atic
Buf);
}
else
CtdlLogPrintf(CTDL_EMERG, format, ap);
}
else
CtdlLogPrintf(CTDL_EMERG, format, ap);
@@
-198,8
+198,8
@@
static void createGlobalBacktrace( void )
if (enable_syslog)
for (NThread = 0; NThread < size; NThread++)
{
if (enable_syslog)
for (NThread = 0; NThread < size; NThread++)
{
- snprintf (St
r
Buf, SIZ, "RAW: %p ", stack_frames[NThread]);
- syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, St
r
Buf);
+ snprintf (St
atic
Buf, SIZ, "RAW: %p ", stack_frames[NThread]);
+ syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, St
atic
Buf);
}
else
for (NThread = 0; NThread < size; NThread++)
}
else
for (NThread = 0; NThread < size; NThread++)
@@
-209,8
+209,8
@@
static void createGlobalBacktrace( void )
if (strings != NULL) {
if (enable_syslog)
{// vsyslogs printf compliance sucks.
if (strings != NULL) {
if (enable_syslog)
{// vsyslogs printf compliance sucks.
- snprintf (St
r
Buf, SIZ, "RAW: %p ", strings[NThread]);
- syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, St
r
Buf);
+ snprintf (St
atic
Buf, SIZ, "RAW: %p ", strings[NThread]);
+ syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, St
atic
Buf);
}
else
CtdlLogPrintf(1, "%s\n", strings[NThread]);
}
else
CtdlLogPrintf(1, "%s\n", strings[NThread]);
@@
-224,8
+224,8
@@
static void outputRawtrace( void )
if (enable_syslog)
for (NThread = 0; NThread < size; NThread++)
{
if (enable_syslog)
for (NThread = 0; NThread < size; NThread++)
{
- snprintf (St
r
Buf, SIZ, "RAW: %p ", stack_frames[NThread]);
- syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, St
r
Buf);
+ snprintf (St
atic
Buf, SIZ, "RAW: %p ", stack_frames[NThread]);
+ syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, St
atic
Buf);
}
else
for (NThread = 0; NThread < size; NThread++)
}
else
for (NThread = 0; NThread < size; NThread++)