* [Openvpn-devel] [XS] Change in openvpn[master]: Fix some msg() calls with wrong number of arguments in Windows-only code
[not found] <gerrit.1778239616000.Ia688ec12e642de699811ced8668b40be9fbb6155@...2715...>
@ 2026-05-08 11:27 ` flichtenheld (Code Review)
2026-05-08 15:30 ` cron2 (Code Review)
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: flichtenheld (Code Review) @ 2026-05-08 11:27 UTC (permalink / raw)
To: plaisthos <arne-openvpn@; +Cc: openvpn-devel
[-- Attachment #1: Type: text/plain, Size: 2482 bytes --]
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1672?usp=email
to review the following change.
Change subject: Fix some msg() calls with wrong number of arguments in Windows-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 <frank@...2641...>
---
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/1
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 = (LPWSTR)malloc(++dwLength * sizeof(WCHAR));
if (*pszValue == 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 6ed395d..cccc0e1 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 (type %u)", __FUNCTION__,
- dwValueType);
+ msg(M_NONFATAL, "%s: \"%ls\" registry value is not string (type %u)",
+ __FUNCTION__, szName, dwValueType);
return ERROR_UNSUPPORTED_TYPE;
}
}
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1672?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia688ec12e642de699811ced8668b40be9fbb6155
Gerrit-Change-Number: 1672
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2641...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@lists.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...1227...>
[-- Attachment #2: Type: text/html, Size: 4092 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Openvpn-devel] [XS] Change in openvpn[master]: Fix some msg() calls with wrong number of arguments in Windows-only code
[not found] <gerrit.1778239616000.Ia688ec12e642de699811ced8668b40be9fbb6155@...2715...>
2026-05-08 11:27 ` [Openvpn-devel] [XS] Change in openvpn[master]: Fix some msg() calls with wrong number of arguments in Windows-only code flichtenheld (Code Review)
@ 2026-05-08 15:30 ` cron2 (Code Review)
2026-05-08 15:31 ` [Openvpn-devel] [PATCH v1] " Gert Doering
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cron2 (Code Review) @ 2026-05-08 15:30 UTC (permalink / raw)
To: flichtenheld <frank@; +Cc: plaisthos <arne-openvpn@
[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1672?usp=email )
Change subject: Fix some msg() calls with wrong number of arguments in Windows-only code
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1672?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia688ec12e642de699811ced8668b40be9fbb6155
Gerrit-Change-Number: 1672
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2641...>
Gerrit-Reviewer: cron2 <gert@...1296...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@lists.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...1227...>
Gerrit-Attention: flichtenheld <frank@...2641...>
Gerrit-Comment-Date: Fri, 08 May 2026 15:30:38 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
[-- Attachment #2: Type: text/html, Size: 2103 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Openvpn-devel] [PATCH v1] Fix some msg() calls with wrong number of arguments in Windows-only code
[not found] <gerrit.1778239616000.Ia688ec12e642de699811ced8668b40be9fbb6155@...2715...>
2026-05-08 11:27 ` [Openvpn-devel] [XS] Change in openvpn[master]: Fix some msg() calls with wrong number of arguments in Windows-only code flichtenheld (Code Review)
2026-05-08 15:30 ` cron2 (Code Review)
@ 2026-05-08 15:31 ` Gert Doering
2026-05-11 12:10 ` [Openvpn-devel] [PATCH applied] " Gert Doering
2026-05-11 12:11 ` [Openvpn-devel] [XS] Change in openvpn[master]: " cron2 (Code Review)
2026-05-11 12:11 ` cron2 (Code Review)
4 siblings, 1 reply; 6+ messages in thread
From: Gert Doering @ 2026-05-08 15:31 UTC (permalink / raw)
To: openvpn-devel
From: Frank Lichtenheld <frank@...2641...>
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 <frank@...2641...>
Acked-by: Gert Doering <gert@...1296...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1672
---
This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1672
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <gert@...1296...>
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 = (LPWSTR)malloc(++dwLength * sizeof(WCHAR));
if (*pszValue == 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 6ed395d..cccc0e1 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 (type %u)", __FUNCTION__,
- dwValueType);
+ msg(M_NONFATAL, "%s: \"%ls\" registry value is not string (type %u)",
+ __FUNCTION__, szName, dwValueType);
return ERROR_UNSUPPORTED_TYPE;
}
}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Openvpn-devel] [PATCH applied] Re: Fix some msg() calls with wrong number of arguments in Windows-only code
2026-05-08 15:31 ` [Openvpn-devel] [PATCH v1] " Gert Doering
@ 2026-05-11 12:10 ` Gert Doering
0 siblings, 0 replies; 6+ messages in thread
From: Gert Doering @ 2026-05-11 12:10 UTC (permalink / raw)
To: Frank Lichtenheld <frank@; +Cc: openvpn-devel
Impressive find. Bug :-) - have not tried to figure out how to get
these messages printed (it's in the error handlers, so quite likely
"never, for most users"). Still, obviously correct fix.
Test compiled on mingw/ubuntu.
Your patch has been applied to the master and release/2.7 branch (bug).
commit af44c0f8929bc9817a11ac149ae01f3589959325 (master)
commit 815a3bd87d61b57d640551386efce9638aa014a0 (release/2.7)
Author: Frank Lichtenheld
Date: Fri May 8 17:31:02 2026 +0200
Fix some msg() calls with wrong number of arguments in Windows-only code
Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Gert Doering <gert@...1296...>
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/msg36862.html
Signed-off-by: Gert Doering <gert@...1296...>
--
kind regards,
Gert Doering
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Openvpn-devel] [XS] Change in openvpn[master]: Fix some msg() calls with wrong number of arguments in Windows-only code
[not found] <gerrit.1778239616000.Ia688ec12e642de699811ced8668b40be9fbb6155@...2715...>
` (2 preceding siblings ...)
2026-05-08 15:31 ` [Openvpn-devel] [PATCH v1] " Gert Doering
@ 2026-05-11 12:11 ` cron2 (Code Review)
2026-05-11 12:11 ` cron2 (Code Review)
4 siblings, 0 replies; 6+ messages in thread
From: cron2 (Code Review) @ 2026-05-11 12:11 UTC (permalink / raw)
To: flichtenheld <frank@; +Cc: openvpn-devel
[-- Attachment #1: Type: text/plain, Size: 2768 bytes --]
cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1672?usp=email )
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 Windows-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 <frank@...2641...>
Acked-by: Gert Doering <gert@...1296...>
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/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
index f8bf6ae..4d48f06 100644
--- a/src/openvpnmsica/msiex.c
+++ b/src/openvpnmsica/msiex.c
@@ -51,7 +51,7 @@
*pszValue = (LPWSTR)malloc(++dwLength * sizeof(WCHAR));
if (*pszValue == 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 (type %u)", __FUNCTION__,
- dwValueType);
+ msg(M_NONFATAL, "%s: \"%ls\" registry value is not string (type %u)",
+ __FUNCTION__, szName, dwValueType);
return ERROR_UNSUPPORTED_TYPE;
}
}
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1672?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia688ec12e642de699811ced8668b40be9fbb6155
Gerrit-Change-Number: 1672
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2641...>
Gerrit-Reviewer: cron2 <gert@...1296...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@lists.sourceforge.net>
[-- Attachment #2: Type: text/html, Size: 4423 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Openvpn-devel] [XS] Change in openvpn[master]: Fix some msg() calls with wrong number of arguments in Windows-only code
[not found] <gerrit.1778239616000.Ia688ec12e642de699811ced8668b40be9fbb6155@...2715...>
` (3 preceding siblings ...)
2026-05-11 12:11 ` [Openvpn-devel] [XS] Change in openvpn[master]: " cron2 (Code Review)
@ 2026-05-11 12:11 ` cron2 (Code Review)
4 siblings, 0 replies; 6+ messages in thread
From: cron2 (Code Review) @ 2026-05-11 12:11 UTC (permalink / raw)
To: flichtenheld <frank@; +Cc: plaisthos <arne-openvpn@
[-- Attachment #1: Type: text/plain, Size: 2550 bytes --]
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1672?usp=email )
Change subject: Fix some msg() calls with wrong number of arguments in Windows-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 <frank@...2641...>
Acked-by: Gert Doering <gert@...1296...>
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/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(-)
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 = (LPWSTR)malloc(++dwLength * sizeof(WCHAR));
if (*pszValue == 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 (type %u)", __FUNCTION__,
- dwValueType);
+ msg(M_NONFATAL, "%s: \"%ls\" registry value is not string (type %u)",
+ __FUNCTION__, szName, dwValueType);
return ERROR_UNSUPPORTED_TYPE;
}
}
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1672?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia688ec12e642de699811ced8668b40be9fbb6155
Gerrit-Change-Number: 1672
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2641...>
Gerrit-Reviewer: cron2 <gert@...1296...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@lists.sourceforge.net>
[-- Attachment #2: Type: text/html, Size: 4173 bytes --]
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-05-11 12:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <gerrit.1778239616000.Ia688ec12e642de699811ced8668b40be9fbb6155@...2715...>
2026-05-08 11:27 ` [Openvpn-devel] [XS] Change in openvpn[master]: Fix some msg() calls with wrong number of arguments in Windows-only code flichtenheld (Code Review)
2026-05-08 15:30 ` cron2 (Code Review)
2026-05-08 15:31 ` [Openvpn-devel] [PATCH v1] " Gert Doering
2026-05-11 12:10 ` [Openvpn-devel] [PATCH applied] " Gert Doering
2026-05-11 12:11 ` [Openvpn-devel] [XS] Change in openvpn[master]: " cron2 (Code Review)
2026-05-11 12:11 ` cron2 (Code Review)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.