mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 03:38:01 +02:00
util: provide better alignment for the function name/line no in trace
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1161>
This commit is contained in:
parent
056bdb733a
commit
3f232131a1
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@
|
||||||
do { \
|
do { \
|
||||||
char buf_[1024]; \
|
char buf_[1024]; \
|
||||||
snprintf(buf_, sizeof(buf_), __VA_ARGS__); \
|
snprintf(buf_, sizeof(buf_), __VA_ARGS__); \
|
||||||
fprintf(file, ANSI_BLUE "%s():%d - " ANSI_RED "%s" ANSI_NORMAL "\n", __func__, __LINE__, buf_); \
|
fprintf(file, ANSI_BLUE "%30s():%4d - " ANSI_RED "%s" ANSI_NORMAL "\n", __func__, __LINE__, buf_); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define trace(...) _trace(stdout, __VA_ARGS__)
|
#define trace(...) _trace(stdout, __VA_ARGS__)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue