Explorar o código

* Use ContextNote in sdprintf()

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
5d5e40e10a
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/debug.c

+ 1 - 2
src/debug.c

@@ -104,8 +104,7 @@ 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) {