[1/9] utils: gen-debug-controls: Remove line number from control description
diff mbox series

Message ID 20250331144352.736700-2-stefan.klug@ideasonboard.com
State New
Headers show
Series
  • Wdr preparations
Related show

Commit Message

Stefan Klug March 31, 2025, 2:43 p.m. UTC
The line numbers change so often that including them in the description
creates too much noise in control_ids_debug.yaml. Output the path only.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
---
 utils/gen-debug-controls.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kieran Bingham March 31, 2025, 4:34 p.m. UTC | #1
Quoting Stefan Klug (2025-03-31 15:43:40)
> The line numbers change so often that including them in the description
> creates too much noise in control_ids_debug.yaml. Output the path only.
> 
> Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>

Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> ---
>  utils/gen-debug-controls.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utils/gen-debug-controls.py b/utils/gen-debug-controls.py
> index 272597f4874f..53c8fa70d76d 100755
> --- a/utils/gen-debug-controls.py
> +++ b/utils/gen-debug-controls.py
> @@ -107,7 +107,7 @@ def main(argv):
>          p = m.file.relative_to(root_dir)
>          desc = {'type': m.type,
>                  'direction': 'out',
> -                'description': f'Debug control {m.name} found in {p}:{m.line}'}
> +                'description': f'Debug control {m.name} found in {p}'}
>          if m.size is not None:
>              desc['size'] = m.size
>  
> -- 
> 2.43.0
>

Patch
diff mbox series

diff --git a/utils/gen-debug-controls.py b/utils/gen-debug-controls.py
index 272597f4874f..53c8fa70d76d 100755
--- a/utils/gen-debug-controls.py
+++ b/utils/gen-debug-controls.py
@@ -107,7 +107,7 @@  def main(argv):
         p = m.file.relative_to(root_dir)
         desc = {'type': m.type,
                 'direction': 'out',
-                'description': f'Debug control {m.name} found in {p}:{m.line}'}
+                'description': f'Debug control {m.name} found in {p}'}
         if m.size is not None:
             desc['size'] = m.size