From 0da6abeb98100fba9951ad42ce1b1c7958322988 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 26 Nov 2024 11:14:30 -0500 Subject: [PATCH] ssb: We can trace request names these days. --- src/ssb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssb.c b/src/ssb.c index 0ab4c8595..bbb3fb8f9 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -1674,7 +1674,7 @@ static void _tf_ssb_connection_rpc_recv(tf_ssb_connection_t* connection, uint8_t if (callback) { char buffer[64]; - snprintf(buffer, sizeof(buffer), "request %d", request_number); + snprintf(buffer, sizeof(buffer), "request %s:%d", request_name, request_number); tf_trace_begin(connection->ssb->trace, buffer); PRE_CALLBACK(connection->ssb, callback); callback(connection, flags, request_number, val, message, size, user_data); @@ -1737,7 +1737,7 @@ static void _tf_ssb_connection_rpc_recv(tf_ssb_connection_t* connection, uint8_t if (callback) { char buffer[64]; - snprintf(buffer, sizeof(buffer), "request %d", request_number); + snprintf(buffer, sizeof(buffer), "request %s:%d", request_name, request_number); tf_trace_begin(connection->ssb->trace, buffer); PRE_CALLBACK(connection->ssb, callback); callback(connection, flags, request_number, JS_UNDEFINED, message, size, user_data);