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__); \
136 #define dev_no_printk(level, dev, fmt, ...) \ argument
139 _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
147 #define dev_emerg(dev, fmt, ...) \ argument
148 dev_printk_index_wrap(_dev_emerg, KERN_EMERG, dev, dev_fmt(fmt), ##__VA_ARGS__)
149 #define dev_crit(dev, fmt, ...) \ argument
150 dev_printk_index_wrap(_dev_crit, KERN_CRIT, dev, dev_fmt(fmt), ##__VA_ARGS__)
151 #define dev_alert(dev, fmt, ...) \ argument
152 dev_printk_index_wrap(_dev_alert, KERN_ALERT, dev, dev_fmt(fmt), ##__VA_ARGS__)
153 #define dev_err(dev, fmt, ...) \ argument
154 dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
155 #define dev_warn(dev, fmt, ...) \ argument
156 dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
157 #define dev_notice(dev, fmt, ...) \ argument
158 dev_printk_index_wrap(_dev_notice, KERN_NOTICE, dev, dev_fmt(fmt), ##__VA_ARGS__)
159 #define dev_info(dev, fmt, ...) \ argument
160 dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
164 #define dev_dbg(dev, fmt, ...) \ argument
165 dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
167 #define dev_dbg(dev, fmt, ...) \ argument
168 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
170 #define dev_dbg(dev, fmt, ...) \ argument
171 dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
175 #define dev_level_once(dev_level, dev, fmt, ...) \ argument
181 dev_level(dev, fmt, ##__VA_ARGS__); \
185 #define dev_level_once(dev_level, dev, fmt, ...) \ argument
188 dev_level(dev, fmt, ##__VA_ARGS__); \
192 #define dev_emerg_once(dev, fmt, ...) \ argument
193 dev_level_once(dev_emerg, dev, fmt, ##__VA_ARGS__)
194 #define dev_alert_once(dev, fmt, ...) \ argument
195 dev_level_once(dev_alert, dev, fmt, ##__VA_ARGS__)
196 #define dev_crit_once(dev, fmt, ...) \ argument
197 dev_level_once(dev_crit, dev, fmt, ##__VA_ARGS__)
198 #define dev_err_once(dev, fmt, ...) \ argument
199 dev_level_once(dev_err, dev, fmt, ##__VA_ARGS__)
200 #define dev_warn_once(dev, fmt, ...) \ argument
201 dev_level_once(dev_warn, dev, fmt, ##__VA_ARGS__)
202 #define dev_notice_once(dev, fmt, ...) \ argument
203 dev_level_once(dev_notice, dev, fmt, ##__VA_ARGS__)
204 #define dev_info_once(dev, fmt, ...) \ argument
205 dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__)
206 #define dev_dbg_once(dev, fmt, ...) \ argument
207 dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
209 #define dev_level_ratelimited(dev_level, dev, fmt, ...) \ argument
215 dev_level(dev, fmt, ##__VA_ARGS__); \
218 #define dev_emerg_ratelimited(dev, fmt, ...) \ argument
219 dev_level_ratelimited(dev_emerg, dev, fmt, ##__VA_ARGS__)
220 #define dev_alert_ratelimited(dev, fmt, ...) \ argument
221 dev_level_ratelimited(dev_alert, dev, fmt, ##__VA_ARGS__)
222 #define dev_crit_ratelimited(dev, fmt, ...) \ argument
223 dev_level_ratelimited(dev_crit, dev, fmt, ##__VA_ARGS__)
224 #define dev_err_ratelimited(dev, fmt, ...) \ argument
225 dev_level_ratelimited(dev_err, dev, fmt, ##__VA_ARGS__)
226 #define dev_warn_ratelimited(dev, fmt, ...) \ argument
227 dev_level_ratelimited(dev_warn, dev, fmt, ##__VA_ARGS__)
228 #define dev_notice_ratelimited(dev, fmt, ...) \ argument
229 dev_level_ratelimited(dev_notice, dev, fmt, ##__VA_ARGS__)
230 #define dev_info_ratelimited(dev, fmt, ...) \ argument
231 dev_level_ratelimited(dev_info, dev, fmt, ##__VA_ARGS__)
235 #define dev_dbg_ratelimited(dev, fmt, ...) \ argument
240 DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
243 __dynamic_dev_dbg(&descriptor, dev, dev_fmt(fmt), \
247 #define dev_dbg_ratelimited(dev, fmt, ...) \ argument
253 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
256 #define dev_dbg_ratelimited(dev, fmt, ...) \ argument
257 dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
263 #define dev_vdbg(dev, fmt, ...) \ argument
264 dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
278 __printf(3, 4) int dev_err_probe(const struct device *dev, int err, const char *fmt, ...);
281 #define dev_err_ptr_probe(dev, ___err, fmt, ...) \ argument
282 ERR_PTR(dev_err_probe(dev, ___err, fmt, ##__VA_ARGS__))
285 #define dev_err_cast_probe(dev, ___err_ptr, fmt, ...) \ argument
286 ERR_PTR(dev_err_probe(dev, PTR_ERR(___err_ptr), fmt, ##__VA_ARGS__))