source: mainline/uspace/lib/drv/generic/log.c@ d7f7a4a

Last change on this file since d7f7a4a was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 4 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 794 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2011 Jiri Svoboda
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libdrv
8 * @{
9 */
10
11#include <io/log.h>
12#include <stdarg.h>
13#include <ddf/log.h>
14
15/** Initialize the logging system.
16 *
17 * @param drv_name Driver name, will be printed as part of message
18 *
19 */
20errno_t ddf_log_init(const char *drv_name)
21{
22 return log_init(drv_name);
23}
24
25/** Log a driver message.
26 *
27 * @param level Message verbosity level. Message is only printed
28 * if verbosity is less than or equal to current
29 * reporting level.
30 * @param fmt Format string (no trailing newline)
31 *
32 */
33void ddf_msg(log_level_t level, const char *fmt, ...)
34{
35 va_list args;
36
37 va_start(args, fmt);
38 log_msgv(LOG_DEFAULT, level, fmt, args);
39 va_end(args);
40}
41
42/** @}
43 */
Note: See TracBrowser for help on using the repository browser.