Mesa (master): aux/driver_ddebug: Normalize pid type from Haiku
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jan 10 03:13:33 UTC 2021
Module: Mesa
Branch: master
Commit: a534cd28273afb3920a8ee9e2f62f6b1df4a1e09
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a534cd28273afb3920a8ee9e2f62f6b1df4a1e09
Author: X512 <danger_mail at list.ru>
Date: Mon Jan 4 22:20:06 2021 -0600
aux/driver_ddebug: Normalize pid type from Haiku
Reviewed-by: Alexander von Gluck IV <kallisti5 at unixzen.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8323>
---
src/gallium/auxiliary/driver_ddebug/dd_draw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/driver_ddebug/dd_draw.c b/src/gallium/auxiliary/driver_ddebug/dd_draw.c
index bcecf6191f9..9fc776d7568 100644
--- a/src/gallium/auxiliary/driver_ddebug/dd_draw.c
+++ b/src/gallium/auxiliary/driver_ddebug/dd_draw.c
@@ -56,7 +56,7 @@ dd_get_debug_filename_and_mkdir(char *buf, size_t buflen, bool verbose)
if (mkdir(dir, 0774) && errno != EEXIST)
fprintf(stderr, "dd: can't create a directory (%i)\n", errno);
- snprintf(buf, buflen, "%s/%s_%u_%08u", dir, proc_name, getpid(),
+ snprintf(buf, buflen, "%s/%s_%u_%08u", dir, proc_name, (unsigned int)getpid(),
(unsigned int)p_atomic_inc_return(&index) - 1);
if (verbose)
More information about the mesa-commit
mailing list