Lines Matching refs:fmt

19 #define dev_fmt(fmt) fmt  argument
36 const char *fmt, va_list args);
38 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...);
42 const char *fmt, ...);
44 void _dev_emerg(const struct device *dev, const char *fmt, ...);
46 void _dev_alert(const struct device *dev, const char *fmt, ...);
48 void _dev_crit(const struct device *dev, const char *fmt, ...);
50 void _dev_err(const struct device *dev, const char *fmt, ...);
52 void _dev_warn(const struct device *dev, const char *fmt, ...);
54 void _dev_notice(const struct device *dev, const char *fmt, ...);
56 void _dev_info(const struct device *dev, const char *fmt, ...);
62 const char *fmt, va_list args) in dev_vprintk_emit() argument
65 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...) in dev_printk_emit() argument
73 const char *fmt, ...) in _dev_printk() argument
77 void _dev_emerg(const struct device *dev, const char *fmt, ...) in _dev_emerg() argument
80 void _dev_crit(const struct device *dev, const char *fmt, ...) in _dev_crit() argument
83 void _dev_alert(const struct device *dev, const char *fmt, ...) in _dev_alert() argument
86 void _dev_err(const struct device *dev, const char *fmt, ...) in _dev_err() argument
89 void _dev_warn(const struct device *dev, const char *fmt, ...) in _dev_warn() argument
92 void _dev_notice(const struct device *dev, const char *fmt, ...) in _dev_notice() argument
95 void _dev_info(const struct device *dev, const char *fmt, ...) in _dev_info() argument
104 #define dev_printk_index_emit(level, fmt, ...) \ argument
105 printk_index_subsys_emit("%s %s: ", level, fmt)
107 #define dev_printk_index_wrap(_p_func, level, dev, fmt, ...) \ argument
109 dev_printk_index_emit(level, fmt); \
110 _p_func(dev, fmt, ##__VA_ARGS__); \
126 #define dev_printk(level, dev, fmt, ...) \ argument
128 dev_printk_index_emit(level, fmt); \
129 _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
137 #define dev_emerg(dev, fmt, ...) \ argument
138 dev_printk_index_wrap(_dev_emerg, KERN_EMERG, dev, dev_fmt(fmt), ##__VA_ARGS__)
139 #define dev_crit(dev, fmt, ...) \ argument
140 dev_printk_index_wrap(_dev_crit, KERN_CRIT, dev, dev_fmt(fmt), ##__VA_ARGS__)
141 #define dev_alert(dev, fmt, ...) \ argument
142 dev_printk_index_wrap(_dev_alert, KERN_ALERT, dev, dev_fmt(fmt), ##__VA_ARGS__)
143 #define dev_err(dev, fmt, ...) \ argument
144 dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
145 #define dev_warn(dev, fmt, ...) \ argument
146 dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
147 #define dev_notice(dev, fmt, ...) \ argument
148 dev_printk_index_wrap(_dev_notice, KERN_NOTICE, dev, dev_fmt(fmt), ##__VA_ARGS__)
149 #define dev_info(dev, fmt, ...) \ argument
150 dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
154 #define dev_dbg(dev, fmt, ...) \ argument
155 dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
157 #define dev_dbg(dev, fmt, ...) \ argument
158 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
160 #define dev_dbg(dev, fmt, ...) \ argument
163 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
168 #define dev_level_once(dev_level, dev, fmt, ...) \ argument
174 dev_level(dev, fmt, ##__VA_ARGS__); \
178 #define dev_level_once(dev_level, dev, fmt, ...) \ argument
181 dev_level(dev, fmt, ##__VA_ARGS__); \
185 #define dev_emerg_once(dev, fmt, ...) \ argument
186 dev_level_once(dev_emerg, dev, fmt, ##__VA_ARGS__)
187 #define dev_alert_once(dev, fmt, ...) \ argument
188 dev_level_once(dev_alert, dev, fmt, ##__VA_ARGS__)
189 #define dev_crit_once(dev, fmt, ...) \ argument
190 dev_level_once(dev_crit, dev, fmt, ##__VA_ARGS__)
191 #define dev_err_once(dev, fmt, ...) \ argument
192 dev_level_once(dev_err, dev, fmt, ##__VA_ARGS__)
193 #define dev_warn_once(dev, fmt, ...) \ argument
194 dev_level_once(dev_warn, dev, fmt, ##__VA_ARGS__)
195 #define dev_notice_once(dev, fmt, ...) \ argument
196 dev_level_once(dev_notice, dev, fmt, ##__VA_ARGS__)
197 #define dev_info_once(dev, fmt, ...) \ argument
198 dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__)
199 #define dev_dbg_once(dev, fmt, ...) \ argument
200 dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
202 #define dev_level_ratelimited(dev_level, dev, fmt, ...) \ argument
208 dev_level(dev, fmt, ##__VA_ARGS__); \
211 #define dev_emerg_ratelimited(dev, fmt, ...) \ argument
212 dev_level_ratelimited(dev_emerg, dev, fmt, ##__VA_ARGS__)
213 #define dev_alert_ratelimited(dev, fmt, ...) \ argument
214 dev_level_ratelimited(dev_alert, dev, fmt, ##__VA_ARGS__)
215 #define dev_crit_ratelimited(dev, fmt, ...) \ argument
216 dev_level_ratelimited(dev_crit, dev, fmt, ##__VA_ARGS__)
217 #define dev_err_ratelimited(dev, fmt, ...) \ argument
218 dev_level_ratelimited(dev_err, dev, fmt, ##__VA_ARGS__)
219 #define dev_warn_ratelimited(dev, fmt, ...) \ argument
220 dev_level_ratelimited(dev_warn, dev, fmt, ##__VA_ARGS__)
221 #define dev_notice_ratelimited(dev, fmt, ...) \ argument
222 dev_level_ratelimited(dev_notice, dev, fmt, ##__VA_ARGS__)
223 #define dev_info_ratelimited(dev, fmt, ...) \ argument
224 dev_level_ratelimited(dev_info, dev, fmt, ##__VA_ARGS__)
228 #define dev_dbg_ratelimited(dev, fmt, ...) \ argument
233 DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
236 __dynamic_dev_dbg(&descriptor, dev, dev_fmt(fmt), \
240 #define dev_dbg_ratelimited(dev, fmt, ...) \ argument
246 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
249 #define dev_dbg_ratelimited(dev, fmt, ...) \ argument
252 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
259 #define dev_vdbg(dev, fmt, ...) \ argument
262 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
277 __printf(3, 4) int dev_err_probe(const struct device *dev, int err, const char *fmt, ...);