diff --git a/sys/dev/drm2/drmP.h b/sys/dev/drm2/drmP.h index b110d8bdc8d1..52b2848a9cd1 100644 --- a/sys/dev/drm2/drmP.h +++ b/sys/dev/drm2/drmP.h @@ -204,18 +204,43 @@ struct drm_device; __func__ , ##__VA_ARGS__); \ } while (0) +#define DRM_DEBUG_DRIVER(fmt, ...) do { \ + if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ + printf("[" DRM_NAME ":KMS:pid%d:%s] " fmt, DRM_CURRENTPID,\ + __func__ , ##__VA_ARGS__); \ +} while (0) + #define DRM_DEBUG_KMS(fmt, ...) do { \ if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ printf("[" DRM_NAME ":KMS:pid%d:%s] " fmt, DRM_CURRENTPID,\ __func__ , ##__VA_ARGS__); \ } while (0) -#define DRM_DEBUG_DRIVER(fmt, ...) do { \ +#define DRM_LOG(fmt, args...) do { \ if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ - printf("[" DRM_NAME ":KMS:pid%d:%s] " fmt, DRM_CURRENTPID,\ + printf("[" DRM_NAME "]:pid%d:%s]" fmt, DRM_CURRENTPID,\ __func__ , ##__VA_ARGS__); \ } while (0) +#define DRM_LOG_KMS(fmt, args...) do { \ + if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ + printf("[" DRM_NAME "]:KMS:pid%d:%s]" fmt, DRM_CURRENTPID,\ + __func__ , ##__VA_ARGS__); \ +} while (0) + +#define DRM_LOG_MODE(fmt, args...) do { \ + if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ + printf("[" DRM_NAME "]:pid%d:%s]" fmt, DRM_CURRENTPID,\ + __func__ , ##__VA_ARGS__); \ +} while (0) + +#define DRM_LOG_DRIVER(fmt, args...) do { \ + if ((drm_debug & DRM_DEBUGBITS_KMS) != 0) \ + printf("[" DRM_NAME "]:KMS:pid%d:%s]" fmt, DRM_CURRENTPID,\ + __func__ , ##__VA_ARGS__); \ +} while (0) + + /*@}*/ /***********************************************************************/