From: Andrii Nakryiko Date: Tue, 12 Nov 2024 04:14:57 +0000 (-0800) Subject: Merge branch 'libbpf-stringify-error-codes-in-log-messages' X-Git-Tag: v6.13-rc1~136^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47e2c45c9c89fe71893aa234dc1a27dec1c7c8d2;p=thirdparty%2Fkernel%2Fstable.git Merge branch 'libbpf-stringify-error-codes-in-log-messages' Mykyta Yatsenko says: ==================== libbpf: stringify error codes in log messages From: Mykyta Yatsenko Libbpf may report error in 2 ways: 1. Numeric errno 2. Errno's text representation, returned by strerror Both ways may be confusing for users: numeric code requires people to know how to find its meaning and strerror may be too generic and unclear. These patches modify libbpf error reporting by swapping numeric codes and strerror with the standard short error name, for example: "failed to attach: -22" becomes "failed to attach: -EINVAL". ==================== Link: https://patch.msgid.link/20241111212919.368971-1-mykyta.yatsenko5@gmail.com Signed-off-by: Andrii Nakryiko --- 47e2c45c9c89fe71893aa234dc1a27dec1c7c8d2