|SUCCESS| [v2,1/1] log: add name query functions
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Thu Nov 19 19:58:26 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173052
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-19
**Info**
1. `app/test/test_logs.c`: if either new function wrongly returns NULL, the test segfaults instead of failing cleanly. This is because the result is passed straight to `strcmp()`:
```
TEST_ASSERT(strcmp(rte_log_get_level_name(RTE_LOG_ERR), "error") == 0,
```
The same applies to the `"disabled"` and `"logtype1"` checks. Check for NULL first so a regression is reported as a test failure:
```c
name = rte_log_get_level_name(RTE_LOG_ERR);
TEST_ASSERT_NOT_NULL(name, "no name for error log level\n");
TEST_ASSERT(strcmp(name, "error") == 0, "invalid name for error log level\n");
```
Review-Result: CLEAN
More information about the test-report
mailing list