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:
@@ -90,7 +90,7 @@ g_zlib_compressor_set_gzheader (GZlibCompressor *compressor)
|
||||
G_FILE_ATTRIBUTE_TIME_MODIFIED);
|
||||
|
||||
if (deflateSetHeader (&compressor->zstream, &compressor->gzheader) != Z_OK)
|
||||
g_warning ("unexpected zlib error: %s\n", compressor->zstream.msg);
|
||||
g_warning ("unexpected zlib error: %s", compressor->zstream.msg);
|
||||
#endif /* !G_OS_WIN32 || ZLIB >= 1.2.4 */
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ g_zlib_compressor_constructed (GObject *object)
|
||||
g_error ("GZlibCompressor: Not enough memory for zlib use");
|
||||
|
||||
if (res != Z_OK)
|
||||
g_warning ("unexpected zlib error: %s\n", compressor->zstream.msg);
|
||||
g_warning ("unexpected zlib error: %s", compressor->zstream.msg);
|
||||
|
||||
g_zlib_compressor_set_gzheader (compressor);
|
||||
}
|
||||
@@ -351,7 +351,7 @@ g_zlib_compressor_reset (GConverter *converter)
|
||||
|
||||
res = deflateReset (&compressor->zstream);
|
||||
if (res != Z_OK)
|
||||
g_warning ("unexpected zlib error: %s\n", compressor->zstream.msg);
|
||||
g_warning ("unexpected zlib error: %s", compressor->zstream.msg);
|
||||
|
||||
/* deflateReset reset the header too, so re-set it */
|
||||
g_zlib_compressor_set_gzheader (compressor);
|
||||
|
Reference in New Issue
Block a user