[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Trace debug level crashes



Hi!

Setting the debug level to "TRACE" crashes the system during boot.

This small patch solves it.
? mint-trace-debug-fix.patch
? xaaes/src.km/xversion.h
Index: sys/cookie.c
===================================================================
RCS file: /mint/freemint/sys/cookie.c,v
retrieving revision 1.32
diff -u -8 -p -r1.32 cookie.c
--- sys/cookie.c	13 Jan 2010 17:13:49 -0000	1.32
+++ sys/cookie.c	24 Sep 2010 15:05:56 -0000
@@ -573,17 +573,17 @@ set_cookie (struct cookie *cj, ulong tag
 	TRACE (("set_cookie(): jar lookup"));
 
 	while (cjar->tag)
 	{
 		n++;
 		if (cjar->tag == tag)
 		{
 			cjar->value = val;
-			TRACE (("set_cookie(): old entry %08lx (%s) updated", tag, asc));
+			TRACE (("set_cookie(): old entry %08lx (%s) updated", tag, asc.a));
 			return E_OK;
 		}
 		cjar++;
 	}
 
 	n++;
 	if (n < cjar->value)
 	{