[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220502094638.1921702-2-mkl@pengutronix.de>
Date: Mon, 2 May 2022 11:46:37 +0200
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: netdev@...r.kernel.org
Cc: kernel@...gutronix.de, Jakub Kicinski <kuba@...nel.org>,
Carlos Llamas <cmllamas@...gle.com>,
Willem de Bruijn <willemb@...gle.com>,
Marc Kleine-Budde <mkl@...gutronix.de>
Subject: [PATCH net 1/2] selftests/net: so_txtime: fix parsing of start time stamp on 32 bit systems
This patch fixes the parsing of the cmd line supplied start time on 32
bit systems. A "long" on 32 bit systems is only 32 bit wide and cannot
hold a timestamp in nano second resolution.
Fixes: 040806343bb4 ("selftests/net: so_txtime multi-host support")
Cc: Carlos Llamas <cmllamas@...gle.com>
Cc: Willem de Bruijn <willemb@...gle.com>
Signed-off-by: Marc Kleine-Budde <mkl@...gutronix.de>
---
tools/testing/selftests/net/so_txtime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/so_txtime.c b/tools/testing/selftests/net/so_txtime.c
index 59067f64b775..103f6bf28e35 100644
--- a/tools/testing/selftests/net/so_txtime.c
+++ b/tools/testing/selftests/net/so_txtime.c
@@ -475,7 +475,7 @@ static void parse_opts(int argc, char **argv)
cfg_rx = true;
break;
case 't':
- cfg_start_time_ns = strtol(optarg, NULL, 0);
+ cfg_start_time_ns = strtoll(optarg, NULL, 0);
break;
case 'm':
cfg_mark = strtol(optarg, NULL, 0);
base-commit: 79396934e289dbc501316c1d1f975bb4c88ae460
--
2.35.1
Powered by blists - more mailing lists