mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-30 10:56:37 +02:00
Remove warning about g_print, etc, encoding.
Thu Mar 28 18:22:53 2002 Owen Taylor <otaylor@redhat.com> * README: Remove warning about g_print, etc, encoding. * NEWS: Updates. * glib/gmessages.c (g_log_default_handler): Use %lu (plus a cast) when printing out pid_t arguments. (#76770, Morten Welinder) * glib/gstrfuncs.c (g_strdup_vprintf): Check the result of vasprintf(), return NULL on failure. (#76802, Akira Tagoh) * tests/testglib.c (TEST): Supress a warning with some GCC versions.
This commit is contained in:
@@ -747,9 +747,9 @@ g_log_default_handler (const gchar *log_domain,
|
||||
const gchar *prg_name = g_get_prgname ();
|
||||
|
||||
if (!prg_name)
|
||||
g_string_append_printf (gstring, "(process:%u): ", getpid ());
|
||||
g_string_append_printf (gstring, "(process:%lu): ", (gulong)getpid ());
|
||||
else
|
||||
g_string_append_printf (gstring, "(%s:%u): ", prg_name, getpid ());
|
||||
g_string_append_printf (gstring, "(%s:%lu): ", prg_name, (gulong)getpid ());
|
||||
}
|
||||
|
||||
if (log_domain)
|
||||
|
Reference in New Issue
Block a user