2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* log.c, log.h, memory.c: Change function name from zlog_backtrace_safe
to the more self-explanatory zlog_backtrace_sigsafe.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index f2969e9..db1f560 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,5 +1,10 @@
2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+ * log.c, log.h, memory.c: Change function name from zlog_backtrace_safe
+ to the more self-explanatory zlog_backtrace_sigsafe.
+
+2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
* debug.[ch]: Remove unused files.
* Makefile.am: Remove references to debug.c and debug.h
diff --git a/lib/log.c b/lib/log.c
index 6623b5c..86e3833 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -226,14 +226,14 @@
}
#undef DUMP
- zlog_backtrace_safe(LOG_ERR);
+ zlog_backtrace_sigsafe(LOG_ERR);
#undef LOC
}
/* Log a backtrace using only async-signal-safe functions.
Needs to be enhanced to support syslog logging. */
void
-zlog_backtrace_safe(int priority)
+zlog_backtrace_sigsafe(int priority)
{
#ifdef HAVE_GLIBC_BACKTRACE
void *array[20];
diff --git a/lib/log.h b/lib/log.h
index 0df75e7..17b24cd 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -132,6 +132,6 @@
called unless the program is about to exit or abort, since it messes
up the state of zlog file pointers. This function needs to be enhanced
to support syslog logging. */
-extern void zlog_backtrace_safe(int priority);
+extern void zlog_backtrace_sigsafe(int priority);
#endif /* _ZEBRA_LOG_H */
diff --git a/lib/memory.c b/lib/memory.c
index 0d23e54..8e2c4fa 100644
--- a/lib/memory.c
+++ b/lib/memory.c
@@ -46,9 +46,9 @@
zlog_err ("%s : can't allocate memory for `%s' size %d: %s\n",
fname, lookup (mstr, type), (int) size, safe_strerror(errno));
log_memstats(LOG_WARNING);
- /* N.B. It might be preferable to call zlog_backtrace_safe here, since
+ /* N.B. It might be preferable to call zlog_backtrace_sigsafe here, since
that function should definitely be safe in an OOM condition. But
- unfortunately zlog_backtrace_safe does not support syslog logging at
+ unfortunately zlog_backtrace_sigsafe does not support syslog logging at
this time... */
zlog_backtrace(LOG_WARNING);
abort();