AltraMayor / AltraMayor/gatekeeper

Improve log entries with context, more accurate string error, and more information

未关闭
#574 0 条评论 0 个 reaction 已指派 1 人 已被 @mengxiang0811 认领 在 GitHub 查看
enhancement good first issue
主要语言
C
星标
1.6k
派生
252
PR 合并指标
30 天内没有已合并 PR

描述

Add context to log entries with "%s(%s): ". The first string is `__func__`, and the second string is some proper context. A common example of context is `iface->name` to identify the interface associated with the log entry.

Review all calls of `strerror()` and replace the ones that are dealing with DPDK's errors with `rte_strerror()`.

Add `"(errno=%i): %s\n"` to `G_LOG()`'s that have `errno`, `rte_errno`, or `-ret` as well. The string is either `strerror()` or `rte_strerror()`.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。