[Mono-dev] [PATCH] unify thread id format in trace

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Fri Aug 20 02:38:48 EDT 2010


  Hello,

This tiny patch unifies the format of thread IDs in our stack traces.
That is, they used to look like this:

[000016D8: 2.11659 1] LEAVE: (wrapper remoting-invoke-with-check) 
System.Net.HttpWebRequest:get_Aborted ()FALSE
[000016d8:] EXCEPTION handling: System.Net.Sockets.SocketException

After the patch, they would look like:

[000016D8: 2.11659 1] LEAVE: (wrapper remoting-invoke-with-check) 
System.Net.HttpWebRequest:get_Aborted ()FALSE
[000016D8:] EXCEPTION handling: System.Net.Sockets.SocketException

The patch actually just changes g_print() with printf(), which seem to 
have different hexadecimal formatting (upper/lower).
I felt a bit awkward to bring printf() than g_print(), but printf() is 
used a lot in trace.c so I took easier path.

Atsushi Eno

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unify-trace-threadid.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100820/21f0c496/attachment.pl 


More information about the Mono-devel-list mailing list