diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-28 11:53:23 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-28 11:53:23 +0200 |
commit | 62d6be2695969cd430351b503b033057a1b50f47 (patch) | |
tree | b607066fcde3ce90d02fe2bc00b336035a9650a6 | |
parent | 90c4283d66f82a090d1f8e65b097193b53ebd61f (diff) | |
download | gnunet-62d6be2695969cd430351b503b033057a1b50f47.tar.gz gnunet-62d6be2695969cd430351b503b033057a1b50f47.zip |
improve outputs of cli
-rw-r--r-- | src/escrow/gnunet-escrow.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/escrow/gnunet-escrow.c b/src/escrow/gnunet-escrow.c index 5b34ed142..23fa5d061 100644 --- a/src/escrow/gnunet-escrow.c +++ b/src/escrow/gnunet-escrow.c | |||
@@ -268,7 +268,7 @@ get_cb (void *cls, | |||
268 | fprintf (stderr, "Escrow failed: %s", emsg); | 268 | fprintf (stderr, "Escrow failed: %s", emsg); |
269 | } | 269 | } |
270 | else | 270 | else |
271 | fprintf (stdout, "Ego %s could successfully be restored!\n", ego->name); | 271 | fprintf (stdout, "Identity %s could successfully be restored!\n", ego->name); |
272 | cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); | 272 | cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); |
273 | } | 273 | } |
274 | 274 | ||
@@ -348,7 +348,21 @@ start_process () | |||
348 | GNUNET_STRINGS_absolute_time_to_string (escrow_status->last_escrow_time)); | 348 | GNUNET_STRINGS_absolute_time_to_string (escrow_status->last_escrow_time)); |
349 | fprintf (stdout, "Next recommended escrow:\t%s\n", | 349 | fprintf (stdout, "Next recommended escrow:\t%s\n", |
350 | GNUNET_STRINGS_absolute_time_to_string (escrow_status->next_recommended_escrow_time)); | 350 | GNUNET_STRINGS_absolute_time_to_string (escrow_status->next_recommended_escrow_time)); |
351 | fprintf (stdout, "Last method:\t\t\t%d\n", escrow_status->last_method); | 351 | fprintf (stdout, "Last method:\t\t\t"); |
352 | switch (escrow_status->last_method) | ||
353 | { | ||
354 | case GNUNET_ESCROW_KEY_PLAINTEXT: | ||
355 | fprintf (stdout, "%s\n", plaintext_string); | ||
356 | break; | ||
357 | case GNUNET_ESCROW_KEY_GNS: | ||
358 | fprintf (stdout, "%s\n", gns_string); | ||
359 | break; | ||
360 | case GNUNET_ESCROW_KEY_ANASTASIS: | ||
361 | fprintf (stdout, "%s\n", anastasis_string); | ||
362 | break; | ||
363 | default: | ||
364 | fprintf (stdout, "INVALID METHOD\n"); | ||
365 | } | ||
352 | cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); | 366 | cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); |
353 | return; | 367 | return; |
354 | } | 368 | } |