From e0a98952601bf8244a1f046a106b6419313537b6 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Mon, 7 Nov 2022 05:05:05 -0800 Subject: [PATCH] maps: Fix the error message in `MapData::pin()` The syscall name is `BPF_OBJ_PIN`, not `BPF_OBJ_GET`. Signed-off-by: Michal Rostecki --- aya/src/maps/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/maps/mod.rs b/aya/src/maps/mod.rs index e0b980be..3e45fba5 100644 --- a/aya/src/maps/mod.rs +++ b/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;