Skip to content

Commit 69f5705

Browse files
andy-shevliuw
authored andcommitted
hyper-v: Use UUID API for exporting the GUID (part 2)
This is a follow up to the commit 1d3c9c0 ("hyper-v: Use UUID API for exporting the GUID") which starts the conversion. 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 88b42da commit 69f5705

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/hv/hv_trace.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ TRACE_EVENT(vmbus_onoffer,
4444
__entry->monitorid = offer->monitorid;
4545
__entry->is_ddc_int = offer->is_dedicated_interrupt;
4646
__entry->connection_id = offer->connection_id;
47-
memcpy(__entry->if_type,
48-
&offer->offer.if_type.b, 16);
49-
memcpy(__entry->if_instance,
50-
&offer->offer.if_instance.b, 16);
47+
export_guid(__entry->if_type, &offer->offer.if_type);
48+
export_guid(__entry->if_instance, &offer->offer.if_instance);
5149
__entry->chn_flags = offer->offer.chn_flags;
5250
__entry->mmio_mb = offer->offer.mmio_megabytes;
5351
__entry->sub_idx = offer->offer.sub_channel_index;

0 commit comments

Comments
 (0)