mirror of https://github.com/xemu-project/xemu.git
nv2a/vk: Simplify debug indent loop to a variable field width format
This commit is contained in:
parent
6ac52147a4
commit
57c6d82fa3
|
@ -27,9 +27,8 @@ extern int nv2a_vk_dgroup_indent;
|
|||
#define NV2A_VK_XDPRINTF(x, fmt, ...) \
|
||||
do { \
|
||||
if (x) { \
|
||||
for (int i = 0; i < nv2a_vk_dgroup_indent; i++) \
|
||||
fprintf(stderr, " "); \
|
||||
fprintf(stderr, fmt "\n", ##__VA_ARGS__); \
|
||||
fprintf(stderr, "%*s" fmt "\n", nv2a_vk_dgroup_indent, "", \
|
||||
##__VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue