mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Utilize wlr_log in example logging
This commit is contained in:
parent
3d71969b2a
commit
b93f00b92f
3 changed files with 16 additions and 14 deletions
|
|
@ -66,12 +66,12 @@ void _wlr_log(log_importance_t verbosity, const char *fmt, ...) {
|
|||
// 'backend/wayland/backend.c'
|
||||
const char *_strip_path(const char *filepath) {
|
||||
static int srclen = strlen(WLR_SRC_DIR) + 1;
|
||||
if(*filepath == '.') {
|
||||
while(*filepath == '.' || *filepath == '/') {
|
||||
if (strstr(filepath, WLR_SRC_DIR) == filepath) {
|
||||
filepath += srclen;
|
||||
} else if (*filepath == '.') {
|
||||
while (*filepath == '.' || *filepath == '/') {
|
||||
++filepath;
|
||||
}
|
||||
} else {
|
||||
filepath += srclen;
|
||||
}
|
||||
return filepath;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue