[profiler] Fix printf bug -- char* vs. MonoString* (mono/mono#15602)
authorJay Krell <jaykrell@microsoft.com>
Tue, 9 Jul 2019 09:24:39 +0000 (02:24 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 9 Jul 2019 09:24:39 +0000 (11:24 +0200)
Gcc warned.

Commit migrated from https://github.com/mono/mono/commit/5a0bc3cf81eec6f8edb4a5c45b566c71235a765b

src/mono/mono/profiler/aot.c

index efb6c46..744b115 100644 (file)
@@ -699,7 +699,7 @@ prof_save (MonoProfiler *prof, FILE* file)
                args [1] = &len;
                args [2] = extra_arg;
 
-               printf ("aot-profiler | Passing data to '%s': %p %d %s\n", mono_method_full_name (send_method, 1), args [0], len, extra_arg);
+               printf ("aot-profiler | Passing data to '%s': %p %d %s\n", mono_method_full_name (send_method, 1), args [0], len, prof->send_to_arg ? prof->send_to_arg : "(null)");
                mono_runtime_try_invoke (send_method, NULL, args, &exc, error);
                mono_error_assert_ok (error);
                g_assert (exc == NULL);