status = parse_option (&n, fields[i]);
if (status != 0)
{
- fprintf (fh, "-1 Error parsing option `%s'", fields[i]);
+ fprintf (fh, "-1 Error parsing option `%s'\n", fields[i]);
break;
}
}
char *value_str = strchr (time_str, ':');
if (value_str == NULL)
{
- fprintf (fh, "-1 No time found.");
+ fprintf (fh, "-1 No time found.\n");
return (-1);
}
*value_str = '\0'; value_str++;
|| ((type_instance != NULL)
&& (strlen (type_instance) >= sizeof (vl.type_instance))))
{
- fprintf (fh, "-1 Identifier too long.");
+ fprintf (fh, "-1 Identifier too long.\n");
return (-1);
}
vl.values = (value_t *) malloc (vl.values_len * sizeof (value_t));
if (vl.values == NULL)
{
- fprintf (fh, "-1 malloc failed.");
+ fprintf (fh, "-1 malloc failed.\n");
return (-1);
}
{
if (parse_option (&vl, fields[i]) != 0)
{
- fprintf (fh, "-1 Error parsing option `%s'",
+ fprintf (fh, "-1 Error parsing option `%s'\n",
fields[i]);
break;
}