ssb: We can trace request names these days.

This commit is contained in:
Cory McWilliams 2024-11-26 11:14:30 -05:00
parent e4e050e8e7
commit 0da6abeb98

View File

@ -1674,7 +1674,7 @@ static void _tf_ssb_connection_rpc_recv(tf_ssb_connection_t* connection, uint8_t
if (callback) if (callback)
{ {
char buffer[64]; 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); tf_trace_begin(connection->ssb->trace, buffer);
PRE_CALLBACK(connection->ssb, callback); PRE_CALLBACK(connection->ssb, callback);
callback(connection, flags, request_number, val, message, size, user_data); 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) if (callback)
{ {
char buffer[64]; 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); tf_trace_begin(connection->ssb->trace, buffer);
PRE_CALLBACK(connection->ssb, callback); PRE_CALLBACK(connection->ssb, callback);
callback(connection, flags, request_number, JS_UNDEFINED, message, size, user_data); callback(connection, flags, request_number, JS_UNDEFINED, message, size, user_data);