|WARNING| examples/multi_process: check return value from get name

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Fri Nov 20 20:34:04 CET 2026


Test-Label: ai-code-review
Test-Status: WARNING
https://dpdk.org/patch/173094

_AI Code Review_

=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-20

**Errors**

1. Typo in the format string: `\e` should be `\t`.

   ```
   +			cmdline_printf(cl, "%u\error - %s\n", port_id, strerror(-ret));
   ```

   - `\e` is not a standard C escape. GCC and clang treat it as a non-ISO extension for the ESC character (0x1B), so the output is `<port>` + ESC + `rror - ...` instead of a tab-separated "error".
   - It also draws a `-Wpedantic` warning ("non-ISO-standard escape sequence"), and compilers without the extension may reject or mangle it.
   - The success branch uses `"%u\t%s\n"`, so `\t` was clearly intended.

   Suggested fix:

   ```c
   cmdline_printf(cl, "%u\terror - %s\n", port_id, strerror(-ret));
   ```

Review-Result: ERROR


More information about the test-report mailing list