diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 6d37e59db571..af92883bb4a6 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -895,8 +895,9 @@ extern const char *dev_driver_string(const struct device *dev); | |||
| 895 | 895 | ||
| 896 | #ifdef CONFIG_PRINTK | 896 | #ifdef CONFIG_PRINTK |
| 897 | 897 | ||
| 898 | extern int dev_vprintk_emit(int level, const struct device *dev, | 898 | extern __printf(3, 0) |
| 899 | const char *fmt, va_list args); | 899 | int dev_vprintk_emit(int level, const struct device *dev, |
| 900 | const char *fmt, va_list args); | ||
| 900 | extern __printf(3, 4) | 901 | extern __printf(3, 4) |
| 901 | int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...); | 902 | int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...); |
| 902 | 903 | ||
| @@ -920,8 +921,9 @@ int _dev_info(const struct device *dev, const char *fmt, ...); | |||
| 920 | 921 | ||
| 921 | #else | 922 | #else |
| 922 | 923 | ||
| 923 | static int dev_vprintk_emit(int level, const struct device *dev, | 924 | static inline __printf(3, 0) |
| 924 | const char *fmt, va_list args) | 925 | int dev_vprintk_emit(int level, const struct device *dev, |
| 926 | const char *fmt, va_list args) | ||
| 925 | { return 0; } | 927 | { return 0; } |
| 926 | static inline __printf(3, 4) | 928 | static inline __printf(3, 4) |
| 927 | int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...) | 929 | int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...) |
