Lines Matching +full:device +full:- +full:level

1 // SPDX-License-Identifier: GPL-2.0
3 * dev_printk.h - printk messages helpers for devices
5 * Copyright (c) 2001-2003 Patrick Mochel <[email protected]>
6 * Copyright (c) 2004-2009 Greg Kroah-Hartman <[email protected]>
7 * Copyright (c) 2008-2009 Novell Inc.
22 struct device;
29 char device[PRINTK_INFO_DEVICE_LEN]; member
35 int dev_vprintk_emit(int level, const struct device *dev,
38 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...);
41 void _dev_printk(const char *level, const struct device *dev,
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, ...);
61 int dev_vprintk_emit(int level, const struct device *dev, in dev_vprintk_emit() argument
65 int dev_printk_emit(int level, const struct device *dev, const char *fmt, ...) in dev_printk_emit() argument
68 static inline void __dev_printk(const char *level, const struct device *dev, in __dev_printk() argument
72 void _dev_printk(const char *level, const struct device *dev, in _dev_printk() argument
77 void _dev_emerg(const struct device *dev, const char *fmt, ...) in _dev_emerg()
80 void _dev_crit(const struct device *dev, const char *fmt, ...) in _dev_crit()
83 void _dev_alert(const struct device *dev, const char *fmt, ...) in _dev_alert()
86 void _dev_err(const struct device *dev, const char *fmt, ...) in _dev_err()
89 void _dev_warn(const struct device *dev, const char *fmt, ...) in _dev_warn()
92 void _dev_notice(const struct device *dev, const char *fmt, ...) in _dev_notice()
95 void _dev_info(const struct device *dev, const char *fmt, ...) in _dev_info()
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); \
115 * dev_<level> infrastructure, so we need to emit here as well as inside those
116 * level-specific macros. Only one index entry will be produced, either way,
118 * dev_<level> macros.
121 * the dev_<level> macros internally which already have dev_fmt() processed.
124 * level to process.
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__); \
143 * #defines for all the dev_<level> macros to prefix with whatever
278 __printf(3, 4) int dev_err_probe(const struct device *dev, int err, const char *fmt, ...);
279 __printf(3, 4) int dev_warn_probe(const struct device *dev, int err, const char *fmt, ...);