1464 |
{ |
{ |
1465 |
int slen; |
int slen; |
1466 |
|
|
1467 |
if (!s && !s[0]) |
if (!s || !s[0]) |
1468 |
return 0; |
return 0; |
1469 |
slen = strlen(s) - 1; |
slen = strlen(s) - 1; |
1470 |
|
|
1926 |
printf("%s%s", line->elements[i].item, line->elements[i].indent); |
printf("%s%s", line->elements[i].item, line->elements[i].indent); |
1927 |
printf("\n"); |
printf("\n"); |
1928 |
} |
} |
1929 |
|
|
1930 |
|
line = getLineByType(LT_TITLE, entry->lines); |
1931 |
|
if (line) { |
1932 |
|
printf("title=%s\n", line->elements[1].item); |
1933 |
|
} else { |
1934 |
|
char * title; |
1935 |
|
line = getLineByType(LT_MENUENTRY, entry->lines); |
1936 |
|
title = grub2ExtractTitle(line); |
1937 |
|
if (title) |
1938 |
|
printf("title=%s\n", title); |
1939 |
|
} |
1940 |
} |
} |
1941 |
|
|
1942 |
int parseSysconfigGrub(int * lbaPtr, char ** bootPtr) { |
int parseSysconfigGrub(int * lbaPtr, char ** bootPtr) { |