diff options
Diffstat (limited to 'dbus/dbus-marshal.c')
-rw-r--r-- | dbus/dbus-marshal.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dbus/dbus-marshal.c b/dbus/dbus-marshal.c index 9fbfb4e1..d8d0d5f7 100644 --- a/dbus/dbus-marshal.c +++ b/dbus/dbus-marshal.c @@ -342,6 +342,25 @@ _dbus_verbose_bytes (const unsigned char *data, _dbus_verbose ("\n"); } +/** + * Dump the given part of the string to verbose log. + * + * @param str the string + * @param start the start of range to dump + * @param len length of range + */ +void +_dbus_verbose_bytes_of_string (const DBusString *str, + int start, + int len) +{ + const char *d; + + _dbus_string_get_const_data_len (str, &d, start, len); + + _dbus_verbose_bytes (d, len); +} + /** @} */ #ifdef DBUS_BUILD_TESTS |