From: "cron2 (Code Review)" Date: Mon, 11 May 2026 12:11:00 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <6638a255339c410a3e62d5babb8c84f6ab1aa573-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="/2lcqObQs3k="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Fix some msg() calls with wrong number of arguments in Windows-only code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --/2lcqObQs3k= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1672?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: Fix some msg() calls with wrong number of arguments in Wind= ows-only code ...................................................................... Fix some msg() calls with wrong number of arguments in Windows-only code For some reason neither MSVC nor MinGW complained? cppcheck did (once told that msg is a printf-style function). Change-Id: Ia688ec12e642de699811ced8668b40be9fbb6155 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1672 Message-Id: <20260508153108.13488-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36= 862.html Signed-off-by: Gert Doering --- M src/openvpnmsica/msiex.c M src/tapctl/tap.c 2 files changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/72/1672/2 diff --git a/src/openvpnmsica/msiex.c b/src/openvpnmsica/msiex.c index f8bf6ae..4d48f06 100644 --- a/src/openvpnmsica/msiex.c +++ b/src/openvpnmsica/msiex.c @@ -51,7 +51,7 @@ *pszValue =3D (LPWSTR)malloc(++dwLength * sizeof(WCHAR)); if (*pszValue =3D=3D NULL) { - msg(M_FATAL, "%s: malloc(%u) failed", dwLength * sizeof(WCHAR)= ); + msg(M_FATAL, "%s: malloc(%u) failed", __FUNCTION__, dwLength *= sizeof(WCHAR)); return ERROR_OUTOFMEMORY; } diff --git a/src/tapctl/tap.c b/src/tapctl/tap.c index 16e3c0b..1d94988 100644 --- a/src/tapctl/tap.c +++ b/src/tapctl/tap.c @@ -487,8 +487,8 @@ } default: - msg(M_NONFATAL, "%s: \"%ls\" registry value is not string (typ= e %u)", __FUNCTION__, - dwValueType); + msg(M_NONFATAL, "%s: \"%ls\" registry value is not string (typ= e %u)", + __FUNCTION__, szName, dwValueType); return ERROR_UNSUPPORTED_TYPE; } } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1672?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ia688ec12e642de699811ced8668b40be9fbb6155 Gerrit-Change-Number: 1672 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --/2lcqObQs3k= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by cron2

Fix some msg() calls with wrong num=
ber of arguments in Windows-only code

For some reason neither MSVC n= or MinGW complained?
cppcheck did (once told that msg is a printf-style<= br>function).

Change-Id: Ia688ec12e642de699811ced8668b40be9fbb6155Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Ge= rt Doering <gert@...1296...>
Gerrit URL: https://gerrit.openvpn.ne= t/c/openvpn/+/1672
Message-Id: <20260508153108.13488-1-gert@...2132...= .>
URL: https://www.mail-archive.com/openvpn-devel@...290...= net/msg36862.html
Signed-off-by: Gert Doering <gert@...1296...>---
M src/openvpnmsica/msiex.c
M src/tapctl/tap.c
2 files changed= , 3 insertions(+), 3 deletions(-)

git pull ssh:=
//gerrit.openvpn.net:29418/openvpn refs/changes/72/1672/2
diff --=
git a/src/openvpnmsica/msiex.c b/src/openvpnmsica/msiex.c
i= ndex f8bf6ae..4d48f06 100644
--- a/src/openvpnmsica/msiex.c=
+++ b/src/openvpnmsica/msiex.c
@@ -51,7 +5= 1,7 @@
*pszValue =3D (LPWSTR)malloc(++dwLength * s= izeof(WCHAR));
if (*pszValue =3D=3D NULL) {
- = msg(M_FATAL, "%s: malloc(%u) failed", dwLength * sizeof(= WCHAR));
+ = msg(M_FATAL, "%s: malloc(%u) failed", __FUNCTION__, dwLength * s= izeof(WCHAR));
return ERROR_OUTOFMEMORY;
}

diff --git a/src/ta= pctl/tap.c b/src/tapctl/tap.c
index 16e3c0b..1d94988 100644=
--- a/src/tapctl/tap.c
+++ b/src/tapctl/ta= p.c
@@ -487,8 +487,8 @@
}
default:
- msg(M_NONFATAL, "%s: \"%ls\&quo= t; registry value is not string (type %u)", __FUNCTION__,
- dwValueType);
+ msg(M_NONFAT= AL, "%s: \"%ls\" registry value is not string (type %u)"= ;,
+ _= _FUNCTION__, szName, dwValueType);
return ERRO= R_UNSUPPORTED_TYPE;
}
}

To view, visit change 1672. To unsubscribe, or for help = writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia688ec12e642de699811ced8668= b40be9fbb6155
Gerrit-Change-Number: 1672
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --/2lcqObQs3k=--