Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf: simplify two pieces of logic
Extra check for type is unnecessary in first case. Extra zeroing is unnecessary, as snprintf guarantees that it will zero-terminate string. Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
- Loading branch information