mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
all: Remove trailing newlines from g_message()/g_warning()/g_error()s
All those logging functions already add a newline to any message they print, so there’s no need to add a trailing newline in the message passed to them. Signed-off-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: nobody
This commit is contained in:
@@ -95,7 +95,7 @@ g_zlib_decompressor_set_gzheader (GZlibDecompressor *decompressor)
|
||||
decompressor->header_data->gzheader.name_max = 256;
|
||||
|
||||
if (inflateGetHeader (&decompressor->zstream, &decompressor->header_data->gzheader) != Z_OK)
|
||||
g_warning ("unexpected zlib error: %s\n", decompressor->zstream.msg);
|
||||
g_warning ("unexpected zlib error: %s", decompressor->zstream.msg);
|
||||
#endif /* !G_OS_WIN32 || ZLIB >= 1.2.4 */
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ g_zlib_decompressor_constructed (GObject *object)
|
||||
g_error ("GZlibDecompressor: Not enough memory for zlib use");
|
||||
|
||||
if (res != Z_OK)
|
||||
g_warning ("unexpected zlib error: %s\n", decompressor->zstream.msg);
|
||||
g_warning ("unexpected zlib error: %s", decompressor->zstream.msg);
|
||||
|
||||
g_zlib_decompressor_set_gzheader (decompressor);
|
||||
}
|
||||
@@ -305,7 +305,7 @@ g_zlib_decompressor_reset (GConverter *converter)
|
||||
|
||||
res = inflateReset (&decompressor->zstream);
|
||||
if (res != Z_OK)
|
||||
g_warning ("unexpected zlib error: %s\n", decompressor->zstream.msg);
|
||||
g_warning ("unexpected zlib error: %s", decompressor->zstream.msg);
|
||||
|
||||
g_zlib_decompressor_set_gzheader (decompressor);
|
||||
}
|
||||
|
Reference in New Issue
Block a user