mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 04:48:08 +02:00
[key-file] Add more debug spew
This commit is contained in:
parent
3ce29d08c7
commit
fb9f087bd2
1 changed files with 7 additions and 0 deletions
|
|
@ -220,6 +220,7 @@ ply_key_file_load_groups (ply_key_file_t *key_file)
|
|||
int items_matched;
|
||||
char *group_name;
|
||||
bool added_group = false;
|
||||
bool has_comments = false;
|
||||
|
||||
do
|
||||
{
|
||||
|
|
@ -239,6 +240,7 @@ ply_key_file_load_groups (ply_key_file_t *key_file)
|
|||
getline (&line_to_toss, &number_of_bytes,
|
||||
key_file->fp);
|
||||
free (line_to_toss);
|
||||
has_comments = true;
|
||||
items_matched = 0;
|
||||
continue;
|
||||
}
|
||||
|
|
@ -265,6 +267,11 @@ ply_key_file_load_groups (ply_key_file_t *key_file)
|
|||
}
|
||||
while (items_matched != EOF);
|
||||
|
||||
if (!added_group && has_comments)
|
||||
{
|
||||
ply_trace ("key file has comments but no groups");
|
||||
}
|
||||
|
||||
return added_group;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue