Remove misplaced line break in g_* logging functions

They resulted in empty lines in the log.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1466
This commit is contained in:
Jonas Ådahl
2020-10-02 17:54:56 +02:00
parent 7266e516a1
commit 2c95e08998
16 changed files with 30 additions and 30 deletions

View File

@ -199,7 +199,7 @@ load_from_current_xcursor_image (MetaCursorSpriteXcursor *sprite_xcursor)
&error);
if (!texture)
{
g_warning ("Failed to allocate cursor texture: %s\n", error->message);
g_warning ("Failed to allocate cursor texture: %s", error->message);
g_error_free (error);
}

View File

@ -1333,7 +1333,7 @@ saved_cb (GObject *object,
{
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
{
g_warning ("Saving monitor configuration failed: %s\n", error->message);
g_warning ("Saving monitor configuration failed: %s", error->message);
g_clear_object (&data->config_store->save_cancellable);
}
@ -1372,7 +1372,7 @@ meta_monitor_config_store_save_sync (MetaMonitorConfigStore *config_store)
NULL,
&error))
{
g_warning ("Saving monitor configuration failed: %s\n",
g_warning ("Saving monitor configuration failed: %s",
error->message);
g_error_free (error);
}

View File

@ -145,7 +145,7 @@ on_bus_acquired_cb (GObject *source,
if (error)
{
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("Failed to get session bus: %s\n", error->message);
g_warning ("Failed to get session bus: %s", error->message);
return;
}
@ -157,7 +157,7 @@ on_bus_acquired_cb (GObject *source,
META_SYSPROF_PROFILER_DBUS_PATH,
&error))
{
g_warning ("Failed to export profiler object: %s\n", error->message);
g_warning ("Failed to export profiler object: %s", error->message);
return;
}

View File

@ -207,7 +207,7 @@ on_bus_acquired (GDBusConnection *connection,
connection,
META_REMOTE_DESKTOP_DBUS_PATH,
&error))
g_warning ("Failed to export remote desktop object: %s\n", error->message);
g_warning ("Failed to export remote desktop object: %s", error->message);
}
static void
@ -215,7 +215,7 @@ on_name_acquired (GDBusConnection *connection,
const char *name,
gpointer user_data)
{
g_info ("Acquired name %s\n", name);
g_info ("Acquired name %s", name);
}
static void
@ -223,7 +223,7 @@ on_name_lost (GDBusConnection *connection,
const char *name,
gpointer user_data)
{
g_warning ("Lost or failed to acquire name %s\n", name);
g_warning ("Lost or failed to acquire name %s", name);
}
static void

View File

@ -280,7 +280,7 @@ on_bus_acquired (GDBusConnection *connection,
connection,
META_SCREEN_CAST_DBUS_PATH,
&error))
g_warning ("Failed to export remote desktop object: %s\n", error->message);
g_warning ("Failed to export remote desktop object: %s", error->message);
}
static void
@ -288,7 +288,7 @@ on_name_acquired (GDBusConnection *connection,
const char *name,
gpointer user_data)
{
g_info ("Acquired name %s\n", name);
g_info ("Acquired name %s", name);
}
static void
@ -296,7 +296,7 @@ on_name_lost (GDBusConnection *connection,
const char *name,
gpointer user_data)
{
g_warning ("Lost or failed to acquire name %s\n", name);
g_warning ("Lost or failed to acquire name %s", name);
}
static void

View File

@ -816,7 +816,7 @@ meta_activate_session (void)
if (!meta_launcher_activate_session (native->launcher, &error))
{
g_warning ("Could not activate session: %s\n", error->message);
g_warning ("Could not activate session: %s", error->message);
g_error_free (error);
return FALSE;
}

View File

@ -276,7 +276,7 @@ meta_virtual_input_device_native_notify_key (ClutterVirtualInputDevice *virtual_
if (get_button_type (key) != EVDEV_BUTTON_TYPE_KEY)
{
g_warning ("Unknown/invalid virtual device key 0x%x pressed\n", key);
g_warning ("Unknown/invalid virtual device key 0x%x pressed", key);
return;
}
@ -373,7 +373,7 @@ apply_level_modifiers (ClutterVirtualInputDevice *virtual_device,
}
else
{
g_warning ("Unhandled level: %d\n", level);
g_warning ("Unhandled level: %d", level);
return;
}
@ -425,7 +425,7 @@ meta_virtual_input_device_native_notify_keyval (ClutterVirtualInputDevice *virtu
if (get_button_type (evcode) != EVDEV_BUTTON_TYPE_KEY)
{
g_warning ("Unknown/invalid virtual device key 0x%x pressed\n", evcode);
g_warning ("Unknown/invalid virtual device key 0x%x pressed", evcode);
return;
}

View File

@ -191,7 +191,7 @@ meta_input_settings_x11_set_send_events (MetaInputSettings *settings,
}
if ((values[0] && !available[0]) || (values[1] && !available[1]))
g_warning ("Device '%s' does not support sendevents mode %d\n",
g_warning ("Device '%s' does not support sendevents mode %d",
clutter_input_device_get_device_name (device), mode);
else
change_property (device, "libinput Send Events Mode Enabled",
@ -419,7 +419,7 @@ meta_input_settings_x11_set_click_method (MetaInputSettings *settings,
}
if ((values[0] && !available[0]) || (values[1] && !available[1]))
g_warning ("Device '%s' does not support click method %d\n",
g_warning ("Device '%s' does not support click method %d",
clutter_input_device_get_device_name (device), mode);
else
change_property (device, "libinput Click Method Enabled",