diff options
| author | Hans de Goede <[email protected]> | 2019-03-11 11:48:18 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-03-19 15:06:12 +0100 |
| commit | bb31b352510be206d2797b2225e6ae37ff567c8e (patch) | |
| tree | 12ecd8ea0636264b26e96d1965fd6fc4e520df45 | |
| parent | 207338ec5a278a307fa9b650667806fd5a4db5d4 (diff) | |
usb: typec: fusb302: Add __printf attribute to fusb302_log function
Add __printf attribute to fusb302_log function, so that we get
compiler warnings when specifying wrong vararg parameters.
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/usb/typec/tcpm/fusb302.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c index 0029d7a061f6..261b82900fec 100644 --- a/drivers/usb/typec/tcpm/fusb302.c +++ b/drivers/usb/typec/tcpm/fusb302.c @@ -125,13 +125,13 @@ struct fusb302_chip { */ #ifdef CONFIG_DEBUG_FS - static bool fusb302_log_full(struct fusb302_chip *chip) { return chip->logbuffer_tail == (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; } +__printf(2, 0) static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, va_list args) { |