Re: [PATCH] bpftool: fix typo in struct_ops map FD generation for light skeleton

From: Quentin Monnet

Date: Wed May 20 2026 - 05:52:49 EST


2026-05-20 09:40 UTC+0000 ~ Siddharth Nayyar <sidnayyar@xxxxxxxxxx>
> When generating light skeletons for BPF programs containing struct_ops
> maps, bpftool incorrectly outputs a stray literal 't' instead of a tab
> character for the map file descriptor member in the links structure.
> This causes a compilation error when the generated light skeleton is
> used.
>
> Correct the format string by replacing 't' with '\t'.
>
> Fixes: 08ac454e258e ("libbpf: Auto-attach struct_ops BPF maps in BPF skeleton")
> Signed-off-by: Siddharth Nayyar <sidnayyar@xxxxxxxxxx>


Acked-by: Quentin Monnet <qmo@xxxxxxxxxx>

Thank you!