[Mono-bugs] [Bug 80671][Nor] New - In mono/metadata/profiler.c %ll formats are not portable to Win32
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jan 30 09:39:07 EST 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by tml at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80671
--- shadow/80671 2007-01-30 09:39:06.000000000 -0500
+++ shadow/80671.tmp.10379 2007-01-30 09:39:06.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 80671
+Product: Mono: Runtime
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: tml at novell.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: In mono/metadata/profiler.c %ll formats are not portable to Win32
+
+The Microsoft C library uses %I64u and %I64d and not %llu and %lld. There
+are GLib portability macros for this:
+
+Index: mono/metadata/profiler.c
+===================================================================
+--- mono/metadata/profiler.c (revision 71775)
++++ mono/metadata/profiler.c (working copy)
+@@ -831,7 +831,7 @@
+ m = method_get_name (p->method);
+ fprintf (poutput, "########################\n");
+ fprintf (poutput, "% 8.3f ", (double) (p->total * 1000));
+- fprintf (poutput, "%7llu ", (unsigned long long)p->count);
++ fprintf (poutput, "%7" G_GUINT64_FORMAT " ", (unsigned long long)p->count);
+ fprintf (poutput, "% 8.3f ", (double) (p->total * 1000)/(double)p->count);
+ fprintf (poutput, " %s\n", m);
+
+@@ -839,7 +839,7 @@
+ /* callers */
+ output_callers (p);
+ }
+- fprintf (poutput, "Total number of calls: %lld\n", (long long)total_calls);
++ fprintf (poutput, "Total number of calls: %" G_GINT64_FORMAT "\n", (long
+long)total_calls);
+ }
+
+ typedef struct {
More information about the mono-bugs
mailing list