Internal scheduler initialization cannot return NULL anymore.
[silc.git] / lib / silcutil / stacktrace.c
index 38aae9545c22c0ee88f259f0a4e8b0ccdb6757b2..2174080cf867202275fae67a9613cf26c3ad6883 100644 (file)
 
 */
 
-#include "silcincludes.h"
+#include "silc.h"
 
 #ifdef SILC_STACKTRACE
 
 static void *st_blocks = NULL;
 static unsigned long st_blocks_count = 0;
-static bool dump = FALSE;
-static bool malloc_check = FALSE;
+static SilcBool dump = FALSE;
+static SilcBool malloc_check = FALSE;
 
 #define SILC_ST_DEPTH 10
 
@@ -203,7 +203,7 @@ void silc_st_dump(void)
       fprintf(fp, "<stacktrace>%s:%d: #blocks=%lu, bytes=%lu\n",
              stack->file, stack->line, blocks, bytes);
       for (i = 0; i < stack->depth; i++)
-       fprintf(fp, "<pc>%p\n", stack->stack[i]);
+       fprintf(fp, "\tpc=%p\n", stack->stack[i]);
     }
   }