bootctl: add newline after printf (#7856)
authorwinnerman-pythian <33329648+winnerman-pythian@users.noreply.github.com>
Thu, 11 Jan 2018 17:01:57 +0000 (12:01 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 11 Jan 2018 17:01:57 +0000 (18:01 +0100)
Upon error condition, a newline is not printed, leading to the shell prompt jamming against this line.

src/boot/bootctl.c

index 48fdf97..cd95f0e 100644 (file)
@@ -294,7 +294,7 @@ static int status_entries(const char *esp_path, sd_id128_t partition) {
                                        esp_path);
 
         if (config.default_entry < 0)
-                printf("%zu entries, no entry suitable as default", config.n_entries);
+                printf("%zu entries, no entry suitable as default\n", config.n_entries);
         else {
                 const BootEntry *e = &config.entries[config.default_entry];