Commit cfd156ac authored by Niels Möller's avatar Niels Möller
Browse files

Cosmetic changes to the output.

Rev: src/testsuite/parse-config-test.c:1.2
parent 7b288352
...@@ -39,22 +39,22 @@ static void ...@@ -39,22 +39,22 @@ static void
display_settings(struct config_setting *setting) display_settings(struct config_setting *setting)
{ {
if (!setting) if (!setting)
werror(" {}\n"); werror(" {}\n");
else else
{ {
werror(" {\n"); werror(" {\n");
for (; setting; setting = setting->next) for (; setting; setting = setting->next)
{ {
static const char *keys[CONFIG_TYPES] static const char *keys[CONFIG_TYPES]
= { "address", "user" }; = { "address", "user" };
if (setting->type >= CONFIG_TYPES) if (setting->type >= CONFIG_TYPES)
werror(" Invalid config type: %i\n", setting->type); werror(" Invalid config type: %i\n", setting->type);
else if (!setting->value) else if (!setting->value)
werror(" %z = <NULL>\n", keys[setting->type]); werror(" %z = <NULL>\n", keys[setting->type]);
else else
werror(" %z = %S\n", keys[setting->type], setting->value); werror(" %z = %S\n", keys[setting->type], setting->value);
} }
werror(" }\n"); werror(" }\n");
} }
} }
...@@ -70,9 +70,9 @@ display_hosts(struct config_host *host) ...@@ -70,9 +70,9 @@ display_hosts(struct config_host *host)
for (; host; host = host->next) for (; host; host = host->next)
{ {
if (host->name) if (host->name)
werror(" %S\n", host->name); werror(" %S\n", host->name);
else else
werror(" <unnamed>\n"); werror(" <unnamed>\n");
display_settings(host->settings); display_settings(host->settings);
} }
werror(" }\n"); werror(" }\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment