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

5  *  Copyright (c) 2001-2013 ATTO Technology, Inc.
21 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
40 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
48 * the event_log_level module parameter controls the level of messages that are
49 * written to the system log. the default level of messages that are written
57 * to the system log. if critical, warning, and information-level messages are
70 …"Specifies the level of events to report to the system log. Critical and warning level events are…
79 * translates an esas2r-defined logging event level to a kernel logging level.
81 * @param [in] level the esas2r-defined logging event level to translate
83 * @return the corresponding kernel logging level.
85 static const char *translate_esas2r_event_level_to_kernel(const long level) in translate_esas2r_event_level_to_kernel() argument
87 switch (level) { in translate_esas2r_event_level_to_kernel()
106 #pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
111 * outlined by the formatting string, the input device information and the
114 * @param [in] level the event log level of the message
115 * @param [in] dev the device information
119 * @return 0 on success, or -1 if an error occurred.
121 static int esas2r_log_master(const long level, in esas2r_log_master() argument
122 const struct device *dev, in esas2r_log_master()
126 if (level <= event_log_level) { in esas2r_log_master()
134 translate_esas2r_event_level_to_kernel(level); in esas2r_log_master()
141 * format the level onto the beginning of the string and do in esas2r_log_master()
152 (dev->driver ? dev->driver->name : "unknown"), in esas2r_log_master()
153 (dev->bus ? dev->bus->name : "unknown"), in esas2r_log_master()
158 buflen -= strlen(event_buffer); in esas2r_log_master()
163 return -1; in esas2r_log_master()
168 * we don't wind up with run-on messages. in esas2r_log_master()
183 * @param [in] level the event level of the message
187 * @return 0 on success, or -1 if an error occurred.
189 int esas2r_log(const long level, const char *format, ...) in esas2r_log() argument
196 retval = esas2r_log_master(level, NULL, format, args); in esas2r_log()
205 * device information.
207 * @param [in] level the event level of the message
208 * @param [in] dev the device information
212 * @return 0 on success, or -1 if an error occurred.
214 int esas2r_log_dev(const long level, in esas2r_log_dev() argument
215 const struct device *dev, in esas2r_log_dev()
224 retval = esas2r_log_master(level, dev, format, args); in esas2r_log_dev()
233 * device information.
235 * @param [in] level the event level of the message
239 * @return 0 on success, or -1 if an error occurred.
241 int esas2r_log_hexdump(const long level, in esas2r_log_hexdump() argument
245 if (level <= event_log_level) { in esas2r_log_hexdump()
246 print_hex_dump(translate_esas2r_event_level_to_kernel(level), in esas2r_log_hexdump()