On Tue, Nov 15, 2022 at 11:36 AM Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> wrote: > > > It feels the users will be hitting this error case from time to time, > > so the most verbose message is the best. > > Both options above are a bit cryptic. > > How about something like this? > > operation on bpf_list_head expects node at offset=X in struct foo, but > node is at offset=Y in struct bar Excellent. That would be the most accurate error message.