]> www.infradead.org Git - users/jedix/linux-maple.git/commit
verification/dot2k: More robust template variables
authorGabriele Monaco <gmonaco@redhat.com>
Fri, 27 Dec 2024 14:47:47 +0000 (15:47 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 27 Dec 2024 19:18:50 +0000 (14:18 -0500)
commit91f3407e13b89b7391ebc5b6143fd22edd901041
tree97d3b105fb2b82ccc3c2d8b23da737ca2a0a7499
parentca08e071c59d96cb1db19b20ba70e9db7b9d5791
verification/dot2k: More robust template variables

The dot2k templates currently have variables that are automatically
filled by the script marked as an uppercase VARIABLE. This requires some
care while adding new variables to avoid using valid keywords and get
them unexpectedly substituted.

This patch switches the variables to the %%VARIABLE%% notation to make
the pattern substitution more robust.

Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
Link: https://lore.kernel.org/20241227144752.362911-4-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/verification/dot2/dot2k.py
tools/verification/dot2/dot2k_templates/main.c