Skip to content

Commit 8de0e8b

Browse files
netoptimizerborkmann
authored andcommitted
samples/bpf: fix xdp_monitor user output for tracepoint exception
The variable rec_i contains an XDP action code not an error. Thus, using err2str() was wrong, it should have been action2str(). Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent 97c3361 commit 8de0e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/bpf/xdp_monitor_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static void stats_print(struct stats_record *stats_rec,
330330
pps = calc_pps_u64(r, p, t);
331331
if (pps > 0)
332332
printf(fmt1, "Exception", i,
333-
0.0, pps, err2str(rec_i));
333+
0.0, pps, action2str(rec_i));
334334
}
335335
pps = calc_pps_u64(&rec->total, &prev->total, t);
336336
if (pps > 0)

0 commit comments

Comments
 (0)