From 571ac844642796eb899dedccabcdc3c20926cac1 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Mon, 31 Mar 2025 22:11:20 -0600 Subject: measurestack: Avoid using sorted() during analysis --- build-aux/measurestack/app_plugins.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'build-aux/measurestack/app_plugins.py') diff --git a/build-aux/measurestack/app_plugins.py b/build-aux/measurestack/app_plugins.py index 0bd5486..7eb7706 100644 --- a/build-aux/measurestack/app_plugins.py +++ b/build-aux/measurestack/app_plugins.py @@ -806,13 +806,14 @@ class TinyUSBDevicePlugin: assert m call = m.group("func") if call == "_ctrl_xfer.complete_cb": - return [ - # "process_test_mode_cb", + ret = { + # QName("process_test_mode_cb"), QName("tud_vendor_control_xfer_cb"), - *sorted(self.tud_drivers["control_xfer_cb"]), - ], False + } + ret.update(self.tud_drivers["control_xfer_cb"]) + return ret, False if call.startswith("driver->"): - return sorted(self.tud_drivers[call[len("driver->") :]]), False + return self.tud_drivers[call[len("driver->") :]], False if call == "event.func_call.func": # callback from usb_defer_func() return [], False -- cgit v1.2.3-2-g168b