#include <stddef.h>
Go to the source code of this file.
|
#define | hostmsg(fmt, ...) host_printfp(fmt "\n", __PRETTY_FUNCTION__, ##__VA_ARGS__) |
|
#define | host_debug(level, fmt, ...) |
| Emit message only if host_debug_level >= level. More...
|
|
#define | host_debug_e(fmt, ...) host_debug(0, "Error! " fmt, ##__VA_ARGS__) |
|
#define | host_debug_w(fmt, ...) host_debug(1, "Warning! " fmt, ##__VA_ARGS__) |
|
#define | host_debug_i(fmt, ...) host_debug(2, fmt, ##__VA_ARGS__) |
|
◆ host_debug
#define host_debug |
( |
|
level, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| |
Value: do { \
host_printf(fmt "\n", ##__VA_ARGS__); \
} \
} while(0)
Emit message only if host_debug_level >= level.
◆ host_debug_e
#define host_debug_e |
( |
|
fmt, |
|
|
|
... |
|
) |
| host_debug(0, "Error! " fmt, ##__VA_ARGS__) |
◆ host_debug_i
#define host_debug_i |
( |
|
fmt, |
|
|
|
... |
|
) |
| host_debug(2, fmt, ##__VA_ARGS__) |
◆ host_debug_w
#define host_debug_w |
( |
|
fmt, |
|
|
|
... |
|
) |
| host_debug(1, "Warning! " fmt, ##__VA_ARGS__) |
◆ hostmsg
#define hostmsg |
( |
|
fmt, |
|
|
|
... |
|
) |
| host_printfp(fmt "\n", __PRETTY_FUNCTION__, ##__VA_ARGS__) |
◆ host_nputs()
◆ host_printf()
void host_printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
hostmsg.h - Print support for host output
Copyright 2019 mikee47 mike@.nosp@m.sill.nosp@m.yhous.nosp@m.e.ne.nosp@m.t
This file is part of the Sming Framework Project
This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 or later.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with SHEM. If not, see https://www.gnu.org/licenses/.
◆ host_printfp()
void host_printfp |
( |
const char * |
fmt, |
|
|
const char * |
pretty_function, |
|
|
|
... |
|
) |
| |
◆ host_puts()
void host_puts |
( |
const char * |
str | ) |
|
◆ host_debug_level