mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
config: Remove bogus trailing newlines in log messages
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
85241c19e9
commit
6d5ac15a51
@@ -491,7 +491,7 @@ ssh_config_parse_line(ssh_session session,
|
|||||||
case MATCH_FINAL:
|
case MATCH_FINAL:
|
||||||
case MATCH_CANONICAL:
|
case MATCH_CANONICAL:
|
||||||
SSH_LOG(SSH_LOG_WARN,
|
SSH_LOG(SSH_LOG_WARN,
|
||||||
"line %d: Unsupported Match keyword '%s', skipping\n",
|
"line %d: Unsupported Match keyword '%s', skipping",
|
||||||
count,
|
count,
|
||||||
p);
|
p);
|
||||||
/* Not set any result here -- the result is dependent on the
|
/* Not set any result here -- the result is dependent on the
|
||||||
@@ -505,13 +505,13 @@ ssh_config_parse_line(ssh_session session,
|
|||||||
p = ssh_config_get_str_tok(&s, NULL);
|
p = ssh_config_get_str_tok(&s, NULL);
|
||||||
if (p == NULL || p[0] == '\0') {
|
if (p == NULL || p[0] == '\0') {
|
||||||
SSH_LOG(SSH_LOG_WARN, "line %d: Match keyword "
|
SSH_LOG(SSH_LOG_WARN, "line %d: Match keyword "
|
||||||
"'%s' requires argument\n", count, p2);
|
"'%s' requires argument", count, p2);
|
||||||
SAFE_FREE(x);
|
SAFE_FREE(x);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
args++;
|
args++;
|
||||||
SSH_LOG(SSH_LOG_WARN,
|
SSH_LOG(SSH_LOG_WARN,
|
||||||
"line %d: Unsupported Match keyword '%s', ignoring\n",
|
"line %d: Unsupported Match keyword '%s', ignoring",
|
||||||
count,
|
count,
|
||||||
p2);
|
p2);
|
||||||
result = 0;
|
result = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user