diff options
author | Eric Anholt <anholt@freebsd.org> | 2002-06-28 07:34:31 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2002-06-28 07:34:31 +0000 |
commit | 53431734f6274464c422608d6122139d7b450b91 (patch) | |
tree | d81ed8101fc3189321865bf6e931b30e0c1e9348 /bsd | |
parent | d22a19a370ec90004cf5e538c3b6d4f9d98d1758 (diff) |
Didn't quite work first time. varargs macros on 2.95 are strange.
Diffstat (limited to 'bsd')
-rw-r--r-- | bsd/drm_os_freebsd.h | 6 | ||||
-rw-r--r-- | bsd/radeon_drv.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index 98256e51..2d7f747d 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -285,17 +285,17 @@ find_first_zero_bit(atomic_t *p, int max) /* Macros to make printf easier */ #define DRM_ERROR(fmt, arg...) \ - printf("error: " "[" DRM_NAME ":%s] *ERROR* " fmt , __FUNCTION__, ## arg) + printf("error: " "[" DRM_NAME ":%s] *ERROR* " fmt , __func__ , ## arg) #define DRM_MEM_ERROR(area, fmt, arg...) \ printf("error: " "[" DRM_NAME ":%s:%s] *ERROR* " fmt , \ - __FUNCTION__, DRM(mem_stats)[area].name , ##arg) + __func__, DRM(mem_stats)[area].name , ##arg) #define DRM_INFO(fmt, arg...) printf("info: " "[" DRM_NAME "] " fmt , ## arg) #if DRM_DEBUG_CODE #define DRM_DEBUG(fmt, arg...) \ do { \ if (DRM(flags) & DRM_FLAG_DEBUG) \ - printf("[" DRM_NAME ":%s] " fmt , __FUNCTION__, ## arg); \ + printf("[" DRM_NAME ":%s] " fmt , __func__ , ## arg); \ } while (0) #else #define DRM_DEBUG(fmt, arg...) do { } while (0) diff --git a/bsd/radeon_drv.c b/bsd/radeon_drv.c index 3764e448..8efa3131 100644 --- a/bsd/radeon_drv.c +++ b/bsd/radeon_drv.c @@ -46,6 +46,8 @@ drm_chipinfo_t DRM(devicelist)[] = { {0x1002, 0x5145, 1, "ATI Radeon QE"}, {0x1002, 0x5146, 1, "ATI Radeon QF"}, {0x1002, 0x5147, 1, "ATI Radeon QG"}, + {0x1002, 0x5157, 1, "ATI Radeon 7500"}, + {0x1002, 0x5159, 1, "ATI Radeon VE"}, {0x1002, 0x5159, 1, "ATI Radeon VE"}, {0, 0, 0, NULL} }; |