Commit c5073974 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: tracing: fix host device num_cports

The type of the gb_host_device num_cports field is size_t.  Correct
the num_cports data recorded with a host device event so its type
matches that; fix the format length modifier used for it as well.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 76639ef5
......@@ -302,7 +302,7 @@ DECLARE_EVENT_CLASS(gb_host_device,
TP_STRUCT__entry(
__field(int, bus_id)
__field(u8, num_cports)
__field(size_t, num_cports)
__field(size_t, buffer_size_max)
),
......@@ -312,7 +312,7 @@ DECLARE_EVENT_CLASS(gb_host_device,
__entry->buffer_size_max = hd->buffer_size_max;
),
TP_printk("greybus: bus_id=%d num_cports=%hu mtu=%zu",
TP_printk("greybus: bus_id=%d num_cports=%zu mtu=%zu",
__entry->bus_id, __entry->num_cports,
__entry->buffer_size_max)
);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment