Skip to content

Commit 1d3c9c0

Browse files
andy-shevliuw
authored andcommitted
hyper-v: Use UUID API for exporting the GUID
There is export_guid() function which exports guid_t to the u8 array. Use it instead of open coding variant. This allows to hide the uuid_t internals. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
1 parent 421f090 commit 1d3c9c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hv/hv_trace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ TRACE_EVENT(vmbus_send_tl_connect_request,
286286
__field(int, ret)
287287
),
288288
TP_fast_assign(
289-
memcpy(__entry->guest_id, &msg->guest_endpoint_id.b, 16);
290-
memcpy(__entry->host_id, &msg->host_service_id.b, 16);
289+
export_guid(__entry->guest_id, &msg->guest_endpoint_id);
290+
export_guid(__entry->host_id, &msg->host_service_id);
291291
__entry->ret = ret;
292292
),
293293
TP_printk("sending guest_endpoint_id %pUl, host_service_id %pUl, "

0 commit comments

Comments
 (0)