Skip to content

fix(mpls): print stack flag without suffix#595

Open
Komzpa wants to merge 1 commit intotraviscross:masterfrom
Komzpa:darafei/gcc-analyzer-fixes
Open

fix(mpls): print stack flag without suffix#595
Komzpa wants to merge 1 commit intotraviscross:masterfrom
Komzpa:darafei/gcc-analyzer-fixes

Conversation

@Komzpa
Copy link
Copy Markdown
Contributor

@Komzpa Komzpa commented May 7, 2026

Summary

This fixes a small MPLS report formatting issue found while following up on analyzer/format warnings.

The IP-info report helper used %cu for the bottom-of-stack field, which can print an extra literal u after the value. The other MPLS output paths print this field as an unsigned numeric flag, so this switches the helper to %u and casts the small integer fields explicitly.

The curses MPLS output gets the same explicit casts for consistency with the report/raw output format handling.

Validation

  • make clean >/tmp/mtr-make-clean.log && make -j "$(nproc)"
  • git diff --check
  • sudo python3 ./test/cmdparse.py

Tracked issues closed: none. This is static-analysis/format follow-up cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant