diff options
Diffstat (limited to 'src/gns/gnunet-gns-gtk_zone.c')
-rw-r--r-- | src/gns/gnunet-gns-gtk_zone.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gns/gnunet-gns-gtk_zone.c b/src/gns/gnunet-gns-gtk_zone.c index 61f74ee2..7a63ee1e 100644 --- a/src/gns/gnunet-gns-gtk_zone.c +++ b/src/gns/gnunet-gns-gtk_zone.c | |||
@@ -339,7 +339,7 @@ GNUNET_GNS_GTK_main_treeview_key_press_popup_menu_cb (GtkWidget *widget, GdkEven | |||
339 | struct ZoneIteration_Context | 339 | struct ZoneIteration_Context |
340 | { | 340 | { |
341 | struct GNUNET_GNS_Context *gns; | 341 | struct GNUNET_GNS_Context *gns; |
342 | GNUNET_HashCode zone; | 342 | struct GNUNET_CRYPTO_ShortHashCode zone; |
343 | struct GNUNET_NAMESTORE_ZoneIterator * it; | 343 | struct GNUNET_NAMESTORE_ZoneIterator * it; |
344 | }; | 344 | }; |
345 | 345 | ||
@@ -381,12 +381,17 @@ void zone_iteration_proc (void *cls, | |||
381 | GNUNET_assert (zc_ctx != NULL); | 381 | GNUNET_assert (zc_ctx != NULL); |
382 | if ((NULL == zone_key) && (NULL == name)) | 382 | if ((NULL == zone_key) && (NULL == name)) |
383 | { | 383 | { |
384 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone `%s 'iteration done\n", GNUNET_h2s(&zc_ctx->zone)); | 384 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded shenc; |
385 | GNUNET_CRYPTO_short_hash_to_enc(&zc_ctx->zone, &shenc); | ||
386 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone `%s 'iteration done\n", &shenc); | ||
385 | GNUNET_free (zc_ctx); | 387 | GNUNET_free (zc_ctx); |
386 | return; | 388 | return; |
387 | } | 389 | } |
390 | |||
391 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded shenc; | ||
392 | GNUNET_CRYPTO_short_hash_to_enc(&zc_ctx->zone, &shenc); | ||
388 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone `%s' iteration result `%s', %u records\n", | 393 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone `%s' iteration result `%s', %u records\n", |
389 | GNUNET_h2s(&zc_ctx->zone), name, rd_count); | 394 | shenc, name, rd_count); |
390 | 395 | ||
391 | GNUNET_assert(GTK_IS_TREE_STORE(zc_ctx->gns->ts)); | 396 | GNUNET_assert(GTK_IS_TREE_STORE(zc_ctx->gns->ts)); |
392 | gtk_tree_store_append(zc_ctx->gns->ts, &iter_name, NULL); | 397 | gtk_tree_store_append(zc_ctx->gns->ts, &iter_name, NULL); |
@@ -476,8 +481,6 @@ GNUNET_GNS_GTK_main_treeview_realize_cb (GtkWidget *widget, | |||
476 | zc_ctx = GNUNET_malloc (sizeof (struct ZoneIteration_Context)); | 481 | zc_ctx = GNUNET_malloc (sizeof (struct ZoneIteration_Context)); |
477 | zc_ctx->gns = user_data; | 482 | zc_ctx->gns = user_data; |
478 | zc_ctx->zone = gns->zone; | 483 | zc_ctx->zone = gns->zone; |
479 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Starting one `%s' iteration\n", GNUNET_h2s(&zc_ctx->zone)); | ||
480 | |||
481 | zc_ctx->it = GNUNET_NAMESTORE_zone_iteration_start(gns->ns, &gns->zone, | 484 | zc_ctx->it = GNUNET_NAMESTORE_zone_iteration_start(gns->ns, &gns->zone, |
482 | GNUNET_NAMESTORE_RF_NONE, | 485 | GNUNET_NAMESTORE_RF_NONE, |
483 | GNUNET_NAMESTORE_RF_NONE, | 486 | GNUNET_NAMESTORE_RF_NONE, |