mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-10 06:40:06 +02:00
Avoid a warning when printing a pid_t. Pointed out by Morten Welinder.
* glib/gslice.c (mem_error): Avoid a warning when printing a pid_t. Pointed out by Morten Welinder. svn path=/trunk/; revision=7196
This commit is contained in:
parent
ba7563a4cb
commit
f37b73fb95
@ -1,3 +1,10 @@
|
|||||||
|
2008-07-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Bug 334234 – "printf" format error
|
||||||
|
|
||||||
|
* glib/gslice.c (mem_error): Avoid a warning when printing a pid_t.
|
||||||
|
Pointed out by Morten Welinder.
|
||||||
|
|
||||||
2008-07-16 Matthias Clasen <mclasen@redhat.com>
|
2008-07-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 406120 – g_ascii_strtod
|
Bug 406120 – g_ascii_strtod
|
||||||
|
@ -1189,7 +1189,7 @@ mem_error (const char *format,
|
|||||||
/* at least, put out "MEMORY-ERROR", in case we segfault during the rest of the function */
|
/* at least, put out "MEMORY-ERROR", in case we segfault during the rest of the function */
|
||||||
fputs ("\n***MEMORY-ERROR***: ", stderr);
|
fputs ("\n***MEMORY-ERROR***: ", stderr);
|
||||||
pname = g_get_prgname();
|
pname = g_get_prgname();
|
||||||
fprintf (stderr, "%s[%u]: GSlice: ", pname ? pname : "", getpid());
|
fprintf (stderr, "%s[%ld]: GSlice: ", pname ? pname : "", (long)getpid());
|
||||||
va_start (args, format);
|
va_start (args, format);
|
||||||
vfprintf (stderr, format, args);
|
vfprintf (stderr, format, args);
|
||||||
va_end (args);
|
va_end (args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user