Skip to content

fix :malformed utl::warn call in detailed_route#9694

Merged
maliberty merged 3 commits intoThe-OpenROAD-Project:masterfrom
suhr25:fix/drt-droute-end-iter-warn-args
Mar 9, 2026
Merged

fix :malformed utl::warn call in detailed_route#9694
maliberty merged 3 commits intoThe-OpenROAD-Project:masterfrom
suhr25:fix/drt-droute-end-iter-warn-args

Conversation

@suhr25
Copy link
Contributor

@suhr25 suhr25 commented Mar 8, 2026

SUMMARY

This PR fixes a malformed utl::warn call in detailed_route that caused a Tcl argument error when -droute_end_iter was set above 64. Instead of stopping with an error, the command now correctly prints a warning and clamps the value.


FIX

  • The utl::warn call was missing the required module and code arguments.
  • Added DRT and warning code 518 to match the logger API.

Before

utl::warn "-droute_end_iter cannot be greater than 64. Setting -droute_end_iter to 64."

After

utl::warn DRT 518 "-droute_end_iter cannot be greater than 64. Setting -droute_end_iter to 64."

VERIFICATION

Run:

detailed_route -droute_end_iter 100

Before: Tcl error due to wrong utl::warn usage.
After: Warning is printed, value is clamped to 64, and routing continues.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly fixes a malformed utl::warn call by adding the required module and code arguments. My review includes a suggestion to define the hardcoded value 64 as a constant to improve maintainability.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

@suhr25 suhr25 force-pushed the fix/drt-droute-end-iter-warn-args branch from 95b460a to 6e00058 Compare March 8, 2026 10:41
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

suhr25 added 3 commits March 8, 2026 10:52
…lamp

utl::warn requires 3 args (module, code, msg). The warn call when
-droute_end_iter > 64 was missing DRT and the message ID, causing a
Tcl wrong-number-of-args error instead of a warning.

Signed-off-by: suhr25 <suhridmarwah07@gmail.com>
Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>
Signed-off-by: suhr25 <suhridmarwah07@gmail.com>
Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>
Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>
@suhr25 suhr25 force-pushed the fix/drt-droute-end-iter-warn-args branch from 6e00058 to 694474c Compare March 8, 2026 10:52
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

@suhr25
Copy link
Contributor Author

suhr25 commented Mar 8, 2026

Hi @eder-matheus @maliberty,
Please take a look at this PR.
Thanks!

@maliberty maliberty merged commit 566951d into The-OpenROAD-Project:master Mar 9, 2026
14 checks passed
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.

2 participants