Adding a trailing \n to g_message, g_debug, g_warning and g_error is not neccessary, as a newline will be added automatically by the logging infrastructure.
This one can be useful in scripts, e.g. for building fingerprint dataset.