]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: tracing: fix host device num_cports
authorAlex Elder <elder@linaro.org>
Fri, 3 Jun 2016 20:55:31 +0000 (15:55 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 4 Jun 2016 00:03:23 +0000 (17:03 -0700)
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>
drivers/staging/greybus/greybus_trace.h

index 52a7ef5c4168ec5b9f375aab3a6d714f69e50079..7157a67673853fa7c9511ea63c3611a62efc8ebf 100644 (file)
@@ -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)
 );