diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-06-19 17:12:35 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-06-19 17:12:35 +0000 |
commit | eb01acbe65d98e86911f5db97b3c893fff189139 (patch) | |
tree | a24d2b4442988535a012ff11576ccec083561df3 /usr.sbin/vmd/parse.y | |
parent | 0de1d34090fbcf42c12ba5c47ca29ceb31d4b16c (diff) |
knf
Diffstat (limited to 'usr.sbin/vmd/parse.y')
-rw-r--r-- | usr.sbin/vmd/parse.y | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.sbin/vmd/parse.y b/usr.sbin/vmd/parse.y index b402a92fa85..61763d6693f 100644 --- a/usr.sbin/vmd/parse.y +++ b/usr.sbin/vmd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.34 2018/06/11 09:32:55 denis Exp $ */ +/* $OpenBSD: parse.y,v 1.35 2018/06/19 17:12:34 reyk Exp $ */ /* * Copyright (c) 2007-2016 Reyk Floeter <reyk@openbsd.org> @@ -204,7 +204,8 @@ switch : SWITCH string { } '{' optnl switch_opts_l '}' { if (strnlen(vsw->sw_ifname, sizeof(vsw->sw_ifname)) == 0) { - yyerror("switch \"%s\" is missing interface name", + yyerror("switch \"%s\" " + "is missing interface name", vsw->sw_name); YYERROR; } @@ -214,7 +215,8 @@ switch : SWITCH string { " skipped (disabled)", file->name, yylval.lineno, vsw->sw_name); } else if (!env->vmd_noaction) { - TAILQ_INSERT_TAIL(env->vmd_switches, vsw, sw_entry); + TAILQ_INSERT_TAIL(env->vmd_switches, + vsw, sw_entry); env->vmd_nswitches++; log_debug("%s:%d: switch \"%s\" registered", file->name, yylval.lineno, vsw->sw_name); @@ -318,10 +320,12 @@ vm : VM string { } else { if (vcp_disable) vm->vm_disabled = 1; - log_debug("%s:%d: vm \"%s\" registered (%s)", + log_debug("%s:%d: vm \"%s\" " + "registered (%s)", file->name, yylval.lineno, vcp->vcp_name, - vcp_disable ? "disabled" : "enabled"); + vcp_disable ? + "disabled" : "enabled"); } vm->vm_from_config = 1; } |