From: "cron2 (Code Review)" Date: Thu, 7 May 2026 08:48:13 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <1dd8b61361ec20cdb8ba25f266d3b5bb89b85945-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="qSplACtaQMM="; 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 Cc: plaisthos , openvpn-devel --qSplACtaQMM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/16= 62?usp=3Demail ) 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(-) 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: merged 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 --qSplACtaQMM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

sample: Fix cppcheck error invalidPrintfArgType_=
sint

Change-Id: Ia7ad24181bd97dccbb77865c10e829778f72a506
Signed-= off-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Gert Doerin= g <gert@...1296...>
Gerrit URL: https://gerrit.openvpn.net/c/openv= pn/+/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 <gert@...1296...>
---
M= sample/sample-plugins/log/log_v3.c
M sample/sample-plugins/simple/base6= 4.c
2 files changed, 2 insertions(+), 2 deletions(-)

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/sampl= e-plugins/log/log_v3.c
@@ -91,7 +91,7 @@
= }

/* Print some version informati= on 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);

/* W= hich 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-plu= gins/simple/base64.c
+++ b/sample/sample-plugins/simple/bas= e64.c
@@ -122,7 +122,7 @@
ovpn_base64_= decode =3D args->callbacks->plugin_base64_decode;

/* Print some version information about the OpenVPN pro= cess using this plug-in */
- ovpn_log(PLOG_NOTE, PLUGIN_NAME, "OpenVPN %s (Major: %i, Min= or: %i, Patch: %s)\n",
+ ovpn_log(PLOG_NOTE, PLUGIN_NAME, "OpenVPN %s (Major: %u, = Minor: %u, Patch: %s)\n",
args->ovpn_= version, args->ovpn_version_major, args->ovpn_version_minor, args->ovpn_version_patch);


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

Gerrit-MessageType: merged
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>
= --qSplACtaQMM=--