2009-08-18 Christian Hergert <chris@dronelabs.com>
authorChristian Hergert <chris@dronelabs.com>
Tue, 18 Aug 2009 11:22:31 +0000 (11:22 -0000)
committerChristian Hergert <chris@dronelabs.com>
Tue, 18 Aug 2009 11:22:31 +0000 (11:22 -0000)
* mini-exceptions.c:
* aot-compiler.c: Fix printf warnings.

Licensed under the MIT X11.

svn path=/trunk/mono/; revision=140143

mono/mini/ChangeLog
mono/mini/aot-compiler.c
mono/mini/mini-exceptions.c

index 85494974f8e9f5c3dc8fc9741f5280ff2d14bbd9..32242066a6d473a31a0ed72c91f2350b620373fc 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-18  Christian Hergert  <chris@dronelabs.com>
+
+       * mini-exceptions.c:
+       * aot-compiler.c: Fix printf warnings.
+
 2009-08-18  Zoltan Varga  <vargaz@gmail.com>
 
        * aot-compiler.c (add_generic_instances): Add instances of
index 702ee2dd2828ad505aba6932152c7bb25f03a67c..0acba564b6a729bf1f436557aa19ed9476d1a900 100644 (file)
@@ -4692,7 +4692,7 @@ emit_got (MonoAotCompile *acfg)
        char symbol [256];
 
        /* Don't make GOT global so accesses to it don't need relocations */
-       sprintf (symbol, acfg->got_symbol);
+       sprintf (symbol, "%s", acfg->got_symbol);
        emit_section_change (acfg, ".bss", 0);
        emit_alignment (acfg, 8);
        emit_local_symbol (acfg, symbol, "got_end", FALSE);
index f7b56a8511916c3eb7bd236ecbb137bdb5291d7a..1dc3ab9232d94306b1f6b18cd2235255507e36cb 100644 (file)
@@ -1643,7 +1643,7 @@ mono_print_thread_dump (void *sigctx)
        printf ("\t<Stack traces in thread dumps not supported on this platform>\n");
 #endif
 
-       fprintf (stdout, text->str);
+       fprintf (stdout, "%s", text->str);
        g_string_free (text, TRUE);
        fflush (stdout);
 }