On 01/07/2012 09:37 AM, Cleber Rosa wrote:
Signed-off-by: Cleber Rosa<crosa@xxxxxxxxxx> --- grubby.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/grubby.c b/grubby.c index 73a5263..bd10205 100644 --- a/grubby.c +++ b/grubby.c @@ -1901,6 +1901,17 @@ void displayEntry(struct singleEntry * entry, const char * prefix, int index) { printf("%s%s", line->elements[i].item, line->elements[i].indent); printf("\n"); } + + line = getLineByType(LT_TITLE, entry->lines); + if (line) { + printf("title=%s\n", line->elements[1].item); + } else { + char * title; + line = getLineByType(LT_MENUENTRY, entry->lines); + title = grub2ExtractTitle(line); + if (title) + printf("title=%s\n", title); + }
Please fix the whitespace here and resend. -- Peter When in doubt, debug-on-entry the function you least suspect has anything to do with something. 01234567890123456789012345678901234567890123456789012345678901234567890123456789 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list