ldlinux: Make tab-completion output same as pre-elflink
authorMatt Fleming <matt.fleming@intel.com>
Wed, 9 Nov 2011 13:19:54 +0000 (13:19 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 2 Dec 2011 12:13:30 +0000 (12:13 +0000)
To maintain compatability with the old pre-elflink command line code,
the list of potential labels should all be printed on one line, not
one per line.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/readconfig.c

index 60448c4..3a6a367 100644 (file)
@@ -426,8 +426,9 @@ void print_labels(const char *prefix, size_t len)
     printf("\n");
     for (me = all_entries; me; me = me->next ) {
        if (!strncmp(prefix, me->label, len))
-           printf(" %s\n", me->label);
+           printf(" %s", me->label);
     }
+    printf("\n");
 }
 
 struct menu_entry *find_label(const char *str)