Commit 8de0e8ba authored by Jesper Dangaard Brouer's avatar Jesper Dangaard Brouer Committed by Daniel Borkmann

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: default avatarJesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 97c33610
...@@ -330,7 +330,7 @@ static void stats_print(struct stats_record *stats_rec, ...@@ -330,7 +330,7 @@ static void stats_print(struct stats_record *stats_rec,
pps = calc_pps_u64(r, p, t); pps = calc_pps_u64(r, p, t);
if (pps > 0) if (pps > 0)
printf(fmt1, "Exception", i, printf(fmt1, "Exception", i,
0.0, pps, err2str(rec_i)); 0.0, pps, action2str(rec_i));
} }
pps = calc_pps_u64(&rec->total, &prev->total, t); pps = calc_pps_u64(&rec->total, &prev->total, t);
if (pps > 0) if (pps > 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment