From 3f232131a1fb94a80ad96511979c00a3d386554b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 14 Mar 2025 14:12:27 +1000 Subject: [PATCH] util: provide better alignment for the function name/line no in trace Part-of: --- src/libinput-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libinput-util.h b/src/libinput-util.h index 945df349..9e1ecbf5 100644 --- a/src/libinput-util.h +++ b/src/libinput-util.h @@ -62,7 +62,7 @@ do { \ char buf_[1024]; \ 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) #define trace(...) _trace(stdout, __VA_ARGS__)