|
|
@@ -104,18 +104,15 @@ void sdprintf (const char *format, ...)
|
|
|
|
|
|
remove_crlf(s);
|
|
|
|
|
|
- simple_snprintf(get_buf[current_get_buf], sizeof(get_buf[current_get_buf]), "dbg: %s", s);
|
|
|
- get_buf_inc();
|
|
|
+ ContextNote("dbg", s);
|
|
|
|
|
|
-#ifdef DEBUG
|
|
|
if (sdebug) {
|
|
|
-#endif
|
|
|
if (!backgrd)
|
|
|
dprintf(DP_STDOUT, "[D:%lu] %s%s%s\n", (unsigned long) mypid, BOLD(-1), s, BOLD_END(-1));
|
|
|
else
|
|
|
printf("[D:%lu] %s%s%s\n", (unsigned long) mypid, BOLD(-1), s, BOLD_END(-1));
|
|
|
-#ifdef DEBUG
|
|
|
}
|
|
|
+#ifdef DEBUG
|
|
|
logfile(LOG_DEBUG, s);
|
|
|
#endif
|
|
|
}
|