From 6f78cbe8ca06b0c6333436864974ffe4c970a7e6 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Thu, 9 Aug 2018 10:32:31 +0200 Subject: [PATCH] use to_string for attribute --- src/reclaim/gnunet-reclaim.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c index 9947eac6d..68a37b704 100644 --- a/src/reclaim/gnunet-reclaim.c +++ b/src/reclaim/gnunet-reclaim.c @@ -341,8 +341,11 @@ iter_cb (void *cls, } GNUNET_free (attrs_tmp); } else if (list) { + attr_str = GNUNET_RECLAIM_ATTRIBUTE_value_to_string (attr->type, + attr->data, + attr->data_size); GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, - "%s: %s\n", attr->name, (char*)attr->data); + "%s: %s\n", attr->name, attr_str); } GNUNET_RECLAIM_get_attributes_next (attr_iterator); } -- 2.25.1