Re: [PATCH v2] bpftool: Fix error message of strerror

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Wed, 28 Sep 2022 16:09:32 +0800 you wrote:
> strerror() expects a positive errno, however variable err will never be
> positive when an error occurs. This causes bpftool to output too many
> "unknown error", even a simple "file not exist" error can not get an
> accurate message.
> 
> This patch fixed all "strerror(err)" patterns in bpftool.
> Specially in btf.c#L823, hashmap__append() is an internal function of
> libbpf and will not change errno, so there's a little difference.
> Some libbpf_get_error() calls are kept for return values.
> 
> [...]

Here is the summary with links:
  - [v2] bpftool: Fix error message of strerror
    https://git.kernel.org/bpf/bpf-next/c/3ca2fb497440

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux