Skip to content

Commit 97926d5

Browse files
marckleinebuddePaolo Abeni
authored andcommitted
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: 0408063 ("selftests/net: so_txtime multi-host support") Cc: Carlos Llamas <[email protected]> Cc: Willem de Bruijn <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Reviewed-by: Carlos Llamas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 3122257 commit 97926d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/so_txtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static void parse_opts(int argc, char **argv)
475475
cfg_rx = true;
476476
break;
477477
case 't':
478-
cfg_start_time_ns = strtol(optarg, NULL, 0);
478+
cfg_start_time_ns = strtoll(optarg, NULL, 0);
479479
break;
480480
case 'm':
481481
cfg_mark = strtol(optarg, NULL, 0);

0 commit comments

Comments
 (0)