Skip to content

Commit

Permalink
Changed %d to %ld to match NUM_TOTAL_PKTS and avoid compile errors
Browse files Browse the repository at this point in the history
Signed-off-by: marezayeye <marezayeye@gmail.com>
  • Loading branch information
marezayeye authored and pktgen committed Oct 11, 2023
1 parent 1de71ec commit 80f3efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pktgen-port-cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pktgen_config_ports(void)
info->seq_pkt = rte_zmalloc_socket(buff, (sizeof(pkt_seq_t) * NUM_TOTAL_PKTS),
RTE_CACHE_LINE_SIZE, rte_socket_id());
if (info->seq_pkt == NULL)
pktgen_log_panic("Unable to allocate %d pkt_seq_t headers", NUM_TOTAL_PKTS);
pktgen_log_panic("Unable to allocate %ld pkt_seq_t headers", NUM_TOTAL_PKTS);

for (int i = 0; i < NUM_TOTAL_PKTS; i++) {
info->seq_pkt[i].seq_enabled = 1;
Expand Down

0 comments on commit 80f3efd

Please sign in to comment.