From: Laurent Corbes <laurent.corbes@enix.fr>
To: pve-devel@lists.proxmox.com
Cc: Laurent Corbes <laurent.corbes@enix.fr>
Subject: [PATCH common 1/1] fix #7445: Silence non-portable hexadecimal
Date: Tue, 24 Mar 2026 11:02:41 +0100 [thread overview]
Message-ID: <20260324100241.847850-2-laurent.corbes@enix.fr> (raw)
In-Reply-To: <20260324100241.847850-1-laurent.corbes@enix.fr>
Fix a warning about non-portable perl hexadecimal number. This is
knowned to be ok, but this flood the logs with a lot of garbage
messages.
Signed-off-by: Laurent Corbes <laurent.corbes@enix.fr>
---
src/PVE/UPID.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/UPID.pm b/src/PVE/UPID.pm
index 1cb671d..b914b90 100644
--- a/src/PVE/UPID.pm
+++ b/src/PVE/UPID.pm
@@ -39,8 +39,8 @@ sub decode($upid, $noerr = 0) {
node => $1,
pid => hex($3),
# NOTE: for 9-digit hex-number perl warns about non-portable, but it still works as
- # asserted by a test case, we could silence the WARN handler or use Math::BigInt?
- pstart => hex($4),
+ # asserted by a test case, so we silence the WARN
+ pstart => do { no warnings 'portable'; hex($4) },
starttime => hex($5),
type => $6,
id => $7,
--
2.43.0
prev parent reply other threads:[~2026-03-24 10:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-24 10:02 [PATCH common 0/1] Silence non-portable hexadecimal warning Laurent Corbes
2026-03-24 10:02 ` Laurent Corbes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260324100241.847850-2-laurent.corbes@enix.fr \
--to=laurent.corbes@enix.fr \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.