AltraMayor / AltraMayor/gatekeeper
Improve log entries with context, more accurate string error, and more information
Offen
#574
0 Kommentare
0 Reaktionen
1 zugewiesene Person
Beansprucht von @mengxiang0811
Auf GitHub ansehen
enhancement
good first issue
- Vorherrschende Sprache
- C
- Sterne
- 1.6k
- Forks
- 252
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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()`.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.