From: "cron2 (Code Review)" Date: Thu, 7 May 2026 08:48:11 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <1dd8b61361ec20cdb8ba25f266d3b5bb89b85945-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="2EfNdRrN5cw="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: sample: Fix cppcheck error invalidPrintfArgType_sint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --2EfNdRrN5cw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1662?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: sample: Fix cppcheck error invalidPrintfArgType_sint ...................................................................... sample: Fix cppcheck error invalidPrintfArgType_sint Change-Id: Ia7ad24181bd97dccbb77865c10e829778f72a506 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1662 Message-Id: <20260507075502.25473-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36= 844.html Signed-off-by: Gert Doering --- M sample/sample-plugins/log/log_v3.c M sample/sample-plugins/simple/base64.c 2 files changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/62/1662/3 diff --git a/sample/sample-plugins/log/log_v3.c b/sample/sample-plugins/log= /log_v3.c index deae590..d2d44c7 100644 --- a/sample/sample-plugins/log/log_v3.c +++ b/sample/sample-plugins/log/log_v3.c @@ -91,7 +91,7 @@ } /* Print some version information about the OpenVPN process using this= plug-in */ - printf("log_v3: OpenVPN %s (Major: %i, Minor: %i, Patch: %s)\n", args= ->ovpn_version, + printf("log_v3: OpenVPN %s (Major: %u, Minor: %u, Patch: %s)\n", args= ->ovpn_version, args->ovpn_version_major, args->ovpn_version_minor, args->ovpn_= version_patch); /* Which callbacks to intercept. */ diff --git a/sample/sample-plugins/simple/base64.c b/sample/sample-plugins/= simple/base64.c index ab6aed8..3b11543 100644 --- a/sample/sample-plugins/simple/base64.c +++ b/sample/sample-plugins/simple/base64.c @@ -122,7 +122,7 @@ ovpn_base64_decode =3D args->callbacks->plugin_base64_decode; /* Print some version information about the OpenVPN process using this= plug-in */ - ovpn_log(PLOG_NOTE, PLUGIN_NAME, "OpenVPN %s (Major: %i, Minor: %i, P= atch: %s)\n", + ovpn_log(PLOG_NOTE, PLUGIN_NAME, "OpenVPN %s (Major: %u, Minor: %u, P= atch: %s)\n", args->ovpn_version, args->ovpn_version_major, args->ovpn_vers= ion_minor, args->ovpn_version_patch); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1662?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: Ia7ad24181bd97dccbb77865c10e829778f72a506 Gerrit-Change-Number: 1662 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --2EfNdRrN5cw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View Change

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

sample: Fix cppcheck error invalidP=
rintfArgType_sint

Change-Id: Ia7ad24181bd97dccbb77865c10e829778f72a5= 06
Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by= : Gert Doering <gert@...1296...>
Gerrit URL: https://gerrit.openvp= n.net/c/openvpn/+/1662
Message-Id: <20260507075502.25473-1-gert@...1711...= 96...>
URL: https://www.mail-archive.com/openvpn-devel@...1357...= rge.net/msg36844.html
Signed-off-by: Gert Doering <gert@...1296...>= ;
---
M sample/sample-plugins/log/log_v3.c
M sample/sample-plugins= /simple/base64.c
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/c=
hanges/62/1662/3
diff --git a/sample/sample-plugins/log/log_v3.c b/=
sample/sample-plugins/log/log_v3.c
index deae590..d2d44c7 1= 00644
--- a/sample/sample-plugins/log/log_v3.c
+++ b/sample/sample-plugins/log/log_v3.c
@@ -91,7 +91,7= @@
}

/* Print = some version information about the OpenVPN process using this plug-in */

- printf("log_v3:= OpenVPN %s (Major: %i, Minor: %i, Patch: %s)\n", args->ovpn_versi= on,
+ printf("= ;log_v3: OpenVPN %s (Major: %u, Minor: %u, Patch: %s)\n", args->ov= pn_version,
args->ovpn_version_major, args-&= gt;ovpn_version_minor, args->ovpn_version_patch);

/* Which callbacks to intercept. */
diff= --git a/sample/sample-plugins/simple/base64.c b/sample/sample-plugins/simp= le/base64.c
index ab6aed8..3b11543 100644
-= -- a/sample/sample-plugins/simple/base64.c
+++ b/sample/sam= ple-plugins/simple/base64.c
@@ -122,7 +122,7 @@
<= span> ovpn_base64_decode =3D args->callbacks->plugin_base64_decod= e;


/* Print some version information= about the OpenVPN process using this plug-in */
- ovpn_log(PLOG_NOTE, PLUGIN_NAME, "OpenV= PN %s (Major: %i, Minor: %i, Patch: %s)\n",
+ ovpn_log(PLOG_NOTE, PLUGIN_NAME, "Op= enVPN %s (Major: %u, Minor: %u, Patch: %s)\n",
= args->ovpn_version, args->ovpn_version_major, args->ovpn_v= ersion_minor,
args->ovpn_version_patch);


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

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia7ad24181bd97dccbb77865c10e= 829778f72a506
Gerrit-Change-Number: 1662
Gerrit-PatchSet: 3
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>
= --2EfNdRrN5cw=--