|
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:
781 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 | #ifndef DDF_LOG_H_
|
|---|
| 12 | #define DDF_LOG_H_
|
|---|
| 13 |
|
|---|
| 14 | #include <io/log.h>
|
|---|
| 15 | #include <io/verify.h>
|
|---|
| 16 |
|
|---|
| 17 | extern errno_t ddf_log_init(const char *);
|
|---|
| 18 | extern void ddf_msg(log_level_t, const char *, ...)
|
|---|
| 19 | _HELENOS_PRINTF_ATTRIBUTE(2, 3);
|
|---|
| 20 |
|
|---|
| 21 | extern void ddf_dump_buffer(char *, size_t, const void *, size_t, size_t,
|
|---|
| 22 | size_t);
|
|---|
| 23 |
|
|---|
| 24 | #define ddf_log_fatal(msg...) ddf_msg(LVL_FATAL, msg)
|
|---|
| 25 | #define ddf_log_error(msg...) ddf_msg(LVL_ERROR, msg)
|
|---|
| 26 | #define ddf_log_warning(msg...) ddf_msg(LVL_WARN, msg)
|
|---|
| 27 | #define ddf_log_note(msg...) ddf_msg(LVL_NOTE, msg)
|
|---|
| 28 | #define ddf_log_debug(msg...) ddf_msg(LVL_DEBUG, msg)
|
|---|
| 29 | #define ddf_log_verbose(msg...) ddf_msg(LVL_DEBUG2, msg)
|
|---|
| 30 |
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| 33 | /** @}
|
|---|
| 34 | */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.