Skip to content

Commit

Permalink
docs: split a C snippet in BPF documentation
Browse files Browse the repository at this point in the history
A snippet of code was recently marked as C, but it actually contains
both C and a sample output from the kernel verifier (which is not C
code). Sphinx raises a warning as it fails to apply syntax highlighting
for C for that snippet. Let's split the C code from the verifier output.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
  • Loading branch information
qmonnet authored and joestringer committed Jun 9, 2021
1 parent b010e40 commit 29bf120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Documentation/bpf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,8 @@ describe some of the differences for the BPF model:
return 0;
}
// On bpf_load_program
Corresponding output on ``bpf_load_program()``::

bpf_load_program() err=13
0: (bf) r6 = r1
...
Expand Down

0 comments on commit 29bf120

Please sign in to comment.