diff options
author | Alex Elder <elder@linaro.org> | 2016-06-03 15:55:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-06-03 17:03:23 -0700 |
commit | c65fdf031816001dde2bf852560c86d226e54da4 (patch) | |
tree | 8c68eea920504e615c3ad16425869c50a941abd2 /drivers/staging/greybus/greybus_trace.h | |
parent | 1ea3ed54dcc2e623db650cf9592d4d3469c99e65 (diff) | |
download | linux-c65fdf031816001dde2bf852560c86d226e54da4.tar.bz2 |
greybus: tracing: fix module num_interfaces
A module's num_interfaces field is included in the data to be
recorded for tracing, but it's never assigned or reported. Fix
its type to be size_t, to match its definition in the gb_module
structure.
Also correct a format length modifier used for a host device's
num_cports field.
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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/greybus/greybus_trace.h b/drivers/staging/greybus/greybus_trace.h index cd930ea75a72..9d38cb31f81f 100644 --- a/drivers/staging/greybus/greybus_trace.h +++ b/drivers/staging/greybus/greybus_trace.h @@ -250,18 +250,20 @@ DECLARE_EVENT_CLASS(gb_module, TP_STRUCT__entry( __field(int, hd_bus_id) __field(u8, module_id) - __field(u8, num_interfaces) + __field(size_t, num_interfaces) __field(int, disconnected) /* bool */ ), TP_fast_assign( __entry->hd_bus_id = module->hd->bus_id; __entry->module_id = module->module_id; + __entry->num_interfaces = module->num_interfaces; __entry->disconnected = module->disconnected; ), - TP_printk("greybus: hd_bus_id=%d module_id=%hhu disconnected=%d", - __entry->hd_bus_id, __entry->module_id, __entry->disconnected) + TP_printk("greybus: hd_bus_id=%d module_id=%hhu num_interfaces=%zu disconnected=%d", + __entry->hd_bus_id, __entry->module_id, + __entry->num_interfaces, __entry->disconnected) ); #define DEFINE_MODULE_EVENT(name) \ |