Browse Source

maps: Fix the error message in `MapData::pin()`

The syscall name is `BPF_OBJ_PIN`, not `BPF_OBJ_GET`.

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Michal Rostecki 2 năm trước cách đây
mục cha
commit
e0a9895
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      aya/src/maps/mod.rs

+ 1 - 1
aya/src/maps/mod.rs

@@ -591,7 +591,7 @@ impl MapData {
             }
         })?;
         bpf_pin_object(fd, &path_string).map_err(|(_, io_error)| PinError::SyscallError {
-            name: "BPF_OBJ_GET".to_string(),
+            name: "BPF_OBJ_PIN".to_string(),
             io_error,
         })?;
         self.pinned = true;