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>
pull/435/head
Michal Rostecki 2 years ago
parent 82773f46c8
commit e0a9895260

@ -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;

Loading…
Cancel
Save