tree-wide: Fixes multi-line macro width after replace to __func__
authorYonggang Luo <luoyonggang@gmail.com>
Sun, 20 Nov 2022 04:50:41 +0000 (12:50 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Nov 2022 06:53:47 +0000 (06:53 +0000)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19861>

src/freedreno/decode/script.c
src/freedreno/drm/freedreno_priv.h
src/freedreno/ir3/ir3_context.h
src/gallium/auxiliary/rtasm/rtasm_x86sse.c
src/gallium/drivers/etnaviv/etnaviv_debug.h
src/gallium/drivers/freedreno/freedreno_util.h
src/gallium/drivers/llvmpipe/lp_linear_priv.h

index 7722417..c2bf75d 100644 (file)
@@ -46,7 +46,7 @@ static lua_State *L;
 #if 0
 #define DBG(fmt, ...)                                                          \
    do {                                                                        \
-      printf(" ** %s:%d ** " fmt "\n", __func__, __LINE__, ##__VA_ARGS__); \
+      printf(" ** %s:%d ** " fmt "\n", __func__, __LINE__, ##__VA_ARGS__);     \
    } while (0)
 #else
 #define DBG(fmt, ...)                                                          \
index 379f649..5191fb3 100644 (file)
@@ -355,21 +355,21 @@ bool fd_dbg(void);
 #define INFO_MSG(fmt, ...)                                                     \
    do {                                                                        \
       if (fd_dbg())                                                            \
-         mesa_logi("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);      \
+         mesa_logi("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);          \
    } while (0)
 #define DEBUG_MSG(fmt, ...)                                                    \
    do                                                                          \
       if (enable_debug) {                                                      \
-         mesa_logd("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);      \
+         mesa_logd("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);          \
       }                                                                        \
    while (0)
 #define WARN_MSG(fmt, ...)                                                     \
    do {                                                                        \
-      mesa_logw("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);         \
+      mesa_logw("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);             \
    } while (0)
 #define ERROR_MSG(fmt, ...)                                                    \
    do {                                                                        \
-      mesa_loge("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);         \
+      mesa_loge("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);             \
    } while (0)
 
 #define U642VOID(x) ((void *)(unsigned long)(x))
index 4d3e706..0085d8a 100644 (file)
@@ -36,7 +36,7 @@
 
 #define DBG(fmt, ...)                                                          \
    do {                                                                        \
-      mesa_logd("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);         \
+      mesa_logd("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);             \
    } while (0)
 
 /**
index 5ec0fb2..5e626c0 100644 (file)
@@ -84,7 +84,7 @@ void x86_print_reg( struct x86_reg reg )
 #define DUMP_END() debug_printf( "\n" )
 
 #define DUMP() do {                             \
-   const char *foo = __func__;              \
+   const char *foo = __func__;                  \
    while (*foo && *foo != '_')                  \
       foo++;                                    \
    if  (*foo)                                   \
index 0bf6418..693c36f 100644 (file)
@@ -63,21 +63,21 @@ extern int etna_mesa_debug; /* set in etnaviv_screen.c from ETNA_MESA_DEBUG */
 #define DBG_F(flag, fmt, ...)                             \
    do {                                                   \
       if (etna_mesa_debug & (flag))                       \
-         mesa_logd("%s:%d: " fmt, __func__, __LINE__, \
+         mesa_logd("%s:%d: " fmt, __func__, __LINE__,     \
                    ##__VA_ARGS__);                        \
    } while (0)
 
 #define DBG(fmt, ...)                                     \
    do {                                                   \
       if (etna_mesa_debug & ETNA_DBG_MSGS)                \
-         mesa_logd("%s:%d: " fmt, __func__, __LINE__, \
+         mesa_logd("%s:%d: " fmt, __func__, __LINE__,     \
                    ##__VA_ARGS__);                        \
    } while (0)
 
 /* A serious bug, show this even in non-debug mode */
 #define BUG(fmt, ...)                                                  \
    do {                                                                \
-      mesa_loge("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__); \
+      mesa_loge("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__);     \
    } while (0)
 
 #endif
index 0aa20a3..5526508 100644 (file)
@@ -115,7 +115,7 @@ extern bool fd_binning_enabled;
    do {                                                                        \
       if (FD_DBG(MSGS))                                                        \
          mesa_logi("%5d: %s:%d: " fmt, ((pid_t)syscall(SYS_gettid)),           \
-                                        __func__, __LINE__,                \
+                                        __func__, __LINE__,                    \
                                         ##__VA_ARGS__);                        \
    } while (0)
 
index d23bab9..66672ee 100644 (file)
@@ -164,7 +164,7 @@ lp_linear_init_noop_sampler(struct lp_linear_sampler *samp);
 
 #define FAIL(s) do {                                    \
       if (LP_DEBUG & DEBUG_LINEAR)                      \
-         debug_printf("%s: %s\n", __func__, s);     \
+         debug_printf("%s: %s\n", __func__, s);         \
       return FALSE;                                     \
 } while (0)