summaryrefslogtreecommitdiff
path: root/dbus/dbus-marshal-basic.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-07-21 11:01:01 +0100
committerSimon McVittie <smcv@debian.org>2016-09-30 19:36:51 +0100
commitf1cd229f83bf6de2fa0b978d8dab11bb0abb3490 (patch)
treeaab3a213b2ad521c58493441b11ba3851950549a /dbus/dbus-marshal-basic.c
parentb8abdc52afcc36dbd6dfbee3a5532048f88097bf (diff)
downloaddbus-f1cd229f83bf6de2fa0b978d8dab11bb0abb3490.tar.gz
Remove trailing newlines from _dbus_warn, _dbus_warn_check_failed
They used to be needed, but are not needed any more, and we were never completely consistent about including them in any case. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'dbus/dbus-marshal-basic.c')
-rw-r--r--dbus/dbus-marshal-basic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbus/dbus-marshal-basic.c b/dbus/dbus-marshal-basic.c
index b5b0d4bb..4352e52a 100644
--- a/dbus/dbus-marshal-basic.c
+++ b/dbus/dbus-marshal-basic.c
@@ -583,7 +583,7 @@ _dbus_marshal_read_basic (const DBusString *str,
}
break;
default:
- _dbus_warn_check_failed ("type %s %d not a basic type\n",
+ _dbus_warn_check_failed ("type %s %d not a basic type",
_dbus_type_to_string (type), type);
_dbus_assert_not_reached ("not a basic type");
break;
@@ -698,7 +698,7 @@ marshal_len_followed_by_bytes (int marshal_as,
_dbus_assert (byte_order == DBUS_LITTLE_ENDIAN || byte_order == DBUS_BIG_ENDIAN);
if (insert_at > _dbus_string_get_length (str))
- _dbus_warn ("insert_at = %d string len = %d data_len = %d\n",
+ _dbus_warn ("insert_at = %d string len = %d data_len = %d",
insert_at, _dbus_string_get_length (str), data_len);
if (marshal_as == MARSHAL_AS_BYTE_ARRAY)
@@ -1129,7 +1129,7 @@ _dbus_marshal_skip_basic (const DBusString *str,
}
break;
default:
- _dbus_warn ("type %s not a basic type\n",
+ _dbus_warn ("type %s not a basic type",
_dbus_type_to_string (type));
_dbus_assert_not_reached ("not a basic type");
break;
@@ -1548,7 +1548,7 @@ swap_test_array (void *array,
{ \
_dbus_verbose_bytes_of_string (&str, dump_pos, \
_dbus_string_get_length (&str) - dump_pos); \
- _dbus_warn ("literal '%s'\nvalue '%s'\n", literal, v_##typename); \
+ _dbus_warn ("literal '%s'\nvalue '%s'", literal, v_##typename); \
_dbus_assert_not_reached ("demarshaled wrong value"); \
} \
} while (0)