summaryrefslogtreecommitdiff
path: root/build-aux/measurestack/app_plugins.py
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-14 16:37:27 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-15 14:56:35 -0600
commit9c0338b1b4495457659157e1e9f47d422dcefc2e (patch)
tree9102ac3a979f082e1c39f9d4223df5f98a7be0c2 /build-aux/measurestack/app_plugins.py
parent67cec6d2770aa14a13c89247612f16c628ebd54c (diff)
lib9p: Remove uses of printf
Diffstat (limited to 'build-aux/measurestack/app_plugins.py')
-rw-r--r--build-aux/measurestack/app_plugins.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/build-aux/measurestack/app_plugins.py b/build-aux/measurestack/app_plugins.py
index 8009c0c..26eb66d 100644
--- a/build-aux/measurestack/app_plugins.py
+++ b/build-aux/measurestack/app_plugins.py
@@ -260,20 +260,12 @@ class Lib9PPlugin:
lib9p_msgs: set[str]
_CONFIG_9P_MAX_CONNS: int | None
_CONFIG_9P_MAX_REQS: int | None
- formatters: typing.Collection[BaseName]
def __init__(
self,
arg_base_dir: str,
arg_c_fnames: typing.Collection[str],
- libmisc_plugin: LibMiscPlugin,
) -> None:
- self.formatters = {
- x.base()
- for x in libmisc_plugin.objcalls["format"]
- if str(x.base()).startswith("lib9p_")
- }
-
# Find filenames #######################################################
def _is_config_h(fname: str) -> bool:
@@ -347,7 +339,7 @@ class Lib9PPlugin:
re_table_call = re.compile(
r"\s*_lib9p_(?P<meth>validate|unmarshal|marshal)\(.*(?P<grp>[RT])msg.*\);\s*"
)
- re_print_call = re.compile(r".*lib9p_table_msg.*\.box_as_fmt_formatter\(.*")
+ re_print_call = re.compile(r".*lib9p_table_msg.*\.print\(.*")
def indirect_callees(
self, loc: str, line: str
@@ -366,9 +358,7 @@ class Lib9PPlugin:
], True
if self.re_print_call.fullmatch(line):
# Functions for disabled protocol extensions will be missing.
- return [
- QName(f"lib9p_msg_{msg}_format") for msg in self.lib9p_msgs
- ], True
+ return [QName(f"fmt_print_{msg}") for msg in self.lib9p_msgs], True
if "lib9p/srv.c:" in loc:
if "srv->msglog(" in line:
# Actual ROMs shouldn't set this, and so will be missing on rp2040 builds.