2009-02-09 Jeffrey Stedfast <fejj@novell.com>
authorJeffrey Stedfast <fejj@novell.com>
Tue, 10 Feb 2009 01:32:54 +0000 (01:32 -0000)
committerJeffrey Stedfast <fejj@novell.com>
Tue, 10 Feb 2009 01:32:54 +0000 (01:32 -0000)
* supportw.c (SetWindowPos): Fixed compile warnings about
printf-style formatters.
(SendMessageA): Same.

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

support/ChangeLog
support/supportw.c

index 704b81ae9a444777246a2183a9b445b1918df81d..a21ccfefbbe1dae62c8e289d62e2c82883ead5c3 100644 (file)
@@ -1,3 +1,9 @@
+2009-02-09  Jeffrey Stedfast  <fejj@novell.com>
+
+       * supportw.c (SetWindowPos): Fixed compile warnings about
+       printf-style formatters.
+       (SendMessageA): Same.
+
 2009-01-14  Geoff Norton  <gnorton@novell.com>
 
        * supportw.c: Use unsigned int instead of uint, as its more portable.
index 1c8b70e8d0d798472f48c4ddf15eebc55e6b3c3e..49ed549c5d2f546ffeffd31a2e3b8289fa32af1a 100644 (file)
@@ -161,14 +161,14 @@ FindWindowExW (gpointer hwndParent, gpointer hwndChildAfter, const char *classw,
 int
 SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int cy, unsigned int flags)
 {
-       fprintf (stderr, "SetWindowPos 0x%x 0x%x to [%d,%dx%d,%d] %d\n", hwnd, hwndInsertAfter, x, y, cx, cy, flags);
+       fprintf (stderr, "SetWindowPos %p %p to [%d,%dx%d,%d] %d\n", hwnd, hwndInsertAfter, x, y, cx, cy, flags);
        return 1;
 }
 
 int
 SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam)
 {
-       fprintf (stderr, "SendMessage (%d, 0x%x, 0x%x, 0x%x)\n", hwnd, msg, wparam, lparam);
+       fprintf (stderr, "SendMessage (%d, 0x%x, %p, %p)\n", (int) GPOINTER_TO_INT (hwnd), msg, wparam, lparam);
        return 0;
 }