summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-20 22:22:05 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-20 22:22:05 +0200
commitadac1c93ab355b8aa45ecbcf7879ec98b44d36f8 (patch)
tree5f34b35de2116c3776c8e45370b1c36cf539df09
parenteb53b74f7e2f83d936b35107806a157fdffdbf5a (diff)
journal: rearrange QR code output a bit to fi to 80x25 terminals
-rw-r--r--src/journal/journalctl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 3fcdf4b4a2..7f25cdb9a2 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -619,14 +619,13 @@ static int setup_keys(void) {
if (hn) {
hostname_cleanup(hn);
- fprintf(stderr, "The keys have been generated for host %s (" SD_ID128_FORMAT_STR ").\n", hn, SD_ID128_FORMAT_VAL(machine));
+ fprintf(stderr, "\nThe keys have been generated for host %s/" SD_ID128_FORMAT_STR ".\n", hn, SD_ID128_FORMAT_VAL(machine));
} else
- fprintf(stderr, "The keys have been generated for host " SD_ID128_FORMAT_STR ".\n", SD_ID128_FORMAT_VAL(machine));
+ fprintf(stderr, "\nThe keys have been generated for host " SD_ID128_FORMAT_STR ".\n", SD_ID128_FORMAT_VAL(machine));
#ifdef HAVE_QRENCODE
- fputc('\n', stderr);
+ fprintf(stderr, "\nTo transfer the verification key to your phone please scan the QR code below:\n\n");
print_qr_code(stderr, seed, seed_size, n, arg_interval, hn, machine);
- fprintf(stderr, "\nScan this QR code with your mobile phone to transfer the verification key to it.\n");
#endif
free(hn);
}