AltraMayor / AltraMayor/gatekeeper

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

Đang mở
#574 0 bình luận 0 reaction 1 người được giao Được @mengxiang0811 nhận Xem trên GitHub
enhancement good first issue
Ngôn ngữ chính
C
Star
1.6k
Fork
252
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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()`.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.