From: Victor Julien Date: Mon, 20 Nov 2023 08:31:40 +0000 (+0100) Subject: yaml: remove newline from error message X-Git-Tag: suricata-6.0.17~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b85255cf597ceab1f7805832a5d4ec27ce40a8b3;p=thirdparty%2Fsuricata.git yaml: remove newline from error message (cherry picked from commit f53c4ab1494acad333e73965f13cde67cf663b1c) --- diff --git a/src/conf-yaml-loader.c b/src/conf-yaml-loader.c index 5a32169b0f..0c7abd58ad 100644 --- a/src/conf-yaml-loader.c +++ b/src/conf-yaml-loader.c @@ -192,8 +192,8 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq, int rlevel) while (!done) { if (!yaml_parser_parse(parser, &event)) { SCLogError(SC_ERR_CONF_YAML_ERROR, - "Failed to parse configuration file at line %" PRIuMAX ": %s\n", - (uintmax_t)parser->problem_mark.line, parser->problem); + "Failed to parse configuration file at line %" PRIuMAX ": %s", + (uintmax_t)parser->problem_mark.line, parser->problem); retval = -1; break; }