projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
421f090
)
hyper-v: Use UUID API for exporting the GUID
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 22 Apr 2020 12:59:37 +0000
(15:59 +0300)
committer
Wei Liu
<wei.liu@kernel.org>
Wed, 22 Apr 2020 13:40:02 +0000
(14:40 +0100)
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 <andriy.shevchenko@linux.intel.com>
Link:
https://lore.kernel.org/r/20200422125937.38355-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_trace.h
patch
|
blob
|
history
diff --git
a/drivers/hv/hv_trace.h
b/drivers/hv/hv_trace.h
index
e70783e
..
f9d14db
100644
(file)
--- a/
drivers/hv/hv_trace.h
+++ b/
drivers/hv/hv_trace.h
@@
-286,8
+286,8
@@
TRACE_EVENT(vmbus_send_tl_connect_request,
__field(int, ret)
),
TP_fast_assign(
-
memcpy(__entry->guest_id, &msg->guest_endpoint_id.b, 16
);
-
memcpy(__entry->host_id, &msg->host_service_id.b, 16
);
+
export_guid(__entry->guest_id, &msg->guest_endpoint_id
);
+
export_guid(__entry->host_id, &msg->host_service_id
);
__entry->ret = ret;
),
TP_printk("sending guest_endpoint_id %pUl, host_service_id %pUl, "