diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-04-26 23:55:30 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-04-26 23:55:30 +0000 |
commit | 9828bd24c8f7b9d115acf94e422fa34ec8627b92 (patch) | |
tree | cafaddcf42301d5ae9f853c205224c6d5c76ca2f /bsd/drm_os_freebsd.h | |
parent | 766a1da2e5841959246abab9cf27c79d75636129 (diff) |
Fix formatting of hw.dri sysctl.
Diffstat (limited to 'bsd/drm_os_freebsd.h')
-rw-r--r-- | bsd/drm_os_freebsd.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index 7b19acc2..b9869c9f 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -368,14 +368,11 @@ find_first_zero_bit(volatile void *p, int max) #endif #define DRM_SYSCTL_PRINT(fmt, arg...) \ +do { \ snprintf(buf, sizeof(buf), fmt, ##arg); \ error = SYSCTL_OUT(req, buf, strlen(buf)); \ - if (error) return error; - -#define DRM_SYSCTL_PRINT_RET(ret, fmt, arg...) \ - snprintf(buf, sizeof(buf), fmt, ##arg); \ - error = SYSCTL_OUT(req, buf, strlen(buf)); \ - if (error) { ret; return error; } + if (error) return error; \ +} while (0) #define DRM_FIND_MAP(dest, o) \ |