diff options
author | Alex Elder <elder@linaro.org> | 2016-06-03 15:55:31 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-06-03 17:03:23 -0700 |
commit | c507397455a6b0b7de7393dad9b4c46c6926bc3f (patch) | |
tree | 8b9992010149c00e3fff09033ec5dbfdf1563fbd /drivers/staging/greybus/greybus_trace.h | |
parent | 76639ef579012a1276043ed765a14170997155b2 (diff) | |
download | linux-c507397455a6b0b7de7393dad9b4c46c6926bc3f.tar.bz2 |
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: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_trace.h')
-rw-r--r-- | drivers/staging/greybus/greybus_trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/greybus_trace.h b/drivers/staging/greybus/greybus_trace.h index 52a7ef5c4168..7157a6767385 100644 --- a/drivers/staging/greybus/greybus_trace.h +++ b/drivers/staging/greybus/greybus_trace.h @@ -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) ); |