use to_string for attribute
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Thu, 9 Aug 2018 08:32:31 +0000 (10:32 +0200)
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Thu, 9 Aug 2018 08:32:31 +0000 (10:32 +0200)
src/reclaim/gnunet-reclaim.c

index 9947eac6d0eccb20d2dc53dd4b417898b0039625..68a37b704049e6ca97257f7cc62cf45e25feb620 100644 (file)
@@ -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);
 }