summaryrefslogtreecommitdiff
path: root/bsd/drm_memory_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd/drm_memory_debug.h')
-rw-r--r--bsd/drm_memory_debug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/bsd/drm_memory_debug.h b/bsd/drm_memory_debug.h
index c4bad089..d211b76b 100644
--- a/bsd/drm_memory_debug.h
+++ b/bsd/drm_memory_debug.h
@@ -32,6 +32,14 @@
#include "drmP.h"
+#define DRM_SYSCTL_PRINT(fmt, arg...) \
+do { \
+ snprintf(buf, sizeof(buf), fmt, ##arg); \
+ error = SYSCTL_OUT(req, buf, strlen(buf)); \
+ if (error) \
+ return error; \
+} while (0)
+
typedef struct drm_mem_stats {
const char *name;
int succeed_count;