From bb5de904357bf8396d0b1476976b1bbb9f42ca6b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 18 Feb 2015 11:39:09 +0000 Subject: [PATCH 18/31] fix: dbus_set_error doesn't need extra newlines --- bus/apparmor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bus/apparmor.c b/bus/apparmor.c index 922687b..3b2be35 100644 --- a/bus/apparmor.c +++ b/bus/apparmor.c @@ -279,7 +279,7 @@ bus_apparmor_full_init (DBusError *error) if (aa_getcon (&context, &mode) == -1) { dbus_set_error (error, DBUS_ERROR_FAILED, - "Error getting AppArmor context of bus: %s\n", + "Error getting AppArmor context of bus: %s", _dbus_strerror (errno)); return FALSE; } @@ -298,7 +298,7 @@ bus_apparmor_full_init (DBusError *error) if (apparmor_config_mode == APPARMOR_REQUIRED) { dbus_set_error (error, DBUS_ERROR_FAILED, - "AppArmor mediation required but not present\n"); + "AppArmor mediation required but not present"); return FALSE; } else if (apparmor_config_mode == APPARMOR_ENABLED) -- 2.1.4