Skip to content

Commit

Permalink
fix format build issue
Browse files Browse the repository at this point in the history
Error message:
format ‘%ld’ expects argument of type ‘long int’, but argument 3
has type ‘int’.

Signed-off-by: Li, Xiaoyun <[email protected]>
  • Loading branch information
Li-Xiaoyun authored and pktgen committed May 30, 2024
1 parent f53800d commit 45a767b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/pktgen-port-cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ pktgen_config_ports(void)
pinfo->seq_pkt = rte_zmalloc_socket(NULL, (sizeof(pkt_seq_t) * NUM_TOTAL_PKTS),
RTE_CACHE_LINE_SIZE, sid);
if (pinfo->seq_pkt == NULL)
pktgen_log_panic("Unable to allocate %'ld pkt_seq_t headers", NUM_TOTAL_PKTS);
pktgen_log_panic("Unable to allocate %'ld pkt_seq_t headers",
(long int)NUM_TOTAL_PKTS);

size_t pktsz = RTE_ETHER_MAX_LEN;
if (pktgen.flags & JUMBO_PKTS_FLAG)
Expand Down

0 comments on commit 45a767b

Please sign in to comment.