From: "flichtenheld (Code Review)" Date: Tue, 5 May 2026 21:56:37 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <0d726fca617b49a6a853de1e8c94bdf3c912b327-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="sbLcXxs2hSQ="; 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: plaisthos Cc: openvpn-devel --sbLcXxs2hSQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/+/1662?usp=3Demail to review the following change. Change subject: sample: Fix cppcheck error invalidPrintfArgType_sint ...................................................................... sample: Fix cppcheck error invalidPrintfArgType_sint Change-Id: Ia7ad24181bd97dccbb77865c10e829778f72a506 Signed-off-by: Frank Lichtenheld --- 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/1 diff --git a/sample/sample-plugins/log/log_v3.c b/sample/sample-plugins/log= /log_v3.c index fae7bc4..09c6735 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: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ia7ad24181bd97dccbb77865c10e829778f72a506 Gerrit-Change-Number: 1662 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --sbLcXxs2hSQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

sample: Fix cppcheck error invalidPrintfArg=
Type_sint

Change-Id: Ia7ad24181bd97dccbb77865c10e829778f72a506
Si= gned-off-by: Frank Lichtenheld <frank@...2641...>
---
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/1
diff --git a/sample/sample-plugins/log/log_v3.c b/sample/sample-plugins=
/log/log_v3.c
index fae7bc4..09c6735 100644
--- a/sample/sample-plugins/log/log_v3.c
+++ b/sample/samp= le-plugins/log/log_v3.c
@@ -91,7 +91,7 @@
= }

/* Print some version informat= ion 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,<= br> args->ovpn_version_major, args->ovpn_version_min= or, args->ovpn_version_patch);

/*= Which callbacks to intercept. */
diff --git a/sample/sam= ple-plugins/simple/base64.c b/sample/sample-plugins/simple/base64.c<= br>index ab6aed8..3b11543 100644
--- a/sample/sample-= plugins/simple/base64.c
+++ b/sample/sample-plugins/simple/= base64.c
@@ -122,7 +122,7 @@
ovpn_base= 64_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, Patch: %s)\n",
+ ovpn_log(PLOG_NOTE, PLUGIN_NAME, "OpenVPN %s (Major: %= u, Minor: %u, Patch: %s)\n",
args->ov= pn_version, args->ovpn_version_major, args->ovpn_version_minor,

args->ovpn_version_patch);


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

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia7ad24181bd97dccbb77865c10e= 829778f72a506
Gerrit-Change-Number: 1662
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --sbLcXxs2hSQ=--