Skip to content

Commit

Permalink
tests/misc.rs: update constant name
Browse files Browse the repository at this point in the history
Fixes: 3ccc848
  • Loading branch information
qmonnet committed Jan 8, 2017
1 parent 6dcdd7e commit 726c7fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fn test_vm_block_port() {
];

let mut vm = rbpf::EbpfVmFixedMbuff::new(&prog, 0x40, 0x50);
vm.register_helper(helpers::BPF_TRACE_PRINTF_IDX, helpers::bpf_trace_printf);
vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX, helpers::bpf_trace_printf);

let res = vm.prog_exec(&mut packet);
println!("Program returned: {:?} ({:#x})", res, res);
Expand Down Expand Up @@ -243,7 +243,7 @@ fn test_jit_block_port() {
];

let mut vm = rbpf::EbpfVmFixedMbuff::new(&prog, 0x40, 0x50);
vm.register_helper(helpers::BPF_TRACE_PRINTF_IDX, helpers::bpf_trace_printf);
vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX, helpers::bpf_trace_printf);
vm.jit_compile();

let res = vm.prog_exec_jit(&mut packet);
Expand Down

0 comments on commit 726c7fa

Please sign in to comment.