Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
e0a9895
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;