소스 검색

Merge pull request #1 from badboy/typo

Fix typo in example

Fixes: 3ccc8483dbbb0b780fc4c4824da4c1ed1dc69317, 726c7fa83fe5ec20d91680ae9c52bdadfa175d36
Quentin Monnet 8 년 전
부모
커밋
114fdd1f1f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -394,10 +394,10 @@ fn main() {
 
     // We register a helper function, that can be called by the program, into
     // the VM.
-    vm.register_helper(helpers::BPF_TRACE_PRINTF_IDX, helpers::bpf_trace_printf);
+    vm.register_helper(helpers::BPF_TRACE_PRINTK_IDX, helpers::bpf_trace_printf);
 
     // This kind of VM takes a reference to the packet data, but does not need
-    // any reference to the metadata buffer: a fixed buffer is handled 
+    // any reference to the metadata buffer: a fixed buffer is handled
     // internally by the VM.
     let res = vm.prog_exec(&mut packet);
     println!("Program returned: {:?} ({:#x})", res, res);