drm/qxl: replace QXL_INFO with DRM_DEBUG_DRIVER
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Link: http://patchwork.freedesktop.org/patch/msgid/20171019062150.28090-2-kraxel@redhat.com
This commit is contained in:
@@ -62,33 +62,9 @@
|
||||
|
||||
#define QXL_DEBUGFS_MAX_COMPONENTS 32
|
||||
|
||||
extern int qxl_log_level;
|
||||
extern int qxl_num_crtc;
|
||||
extern int qxl_max_ioctls;
|
||||
|
||||
enum {
|
||||
QXL_INFO_LEVEL = 1,
|
||||
QXL_DEBUG_LEVEL = 2,
|
||||
};
|
||||
|
||||
#define QXL_INFO(qdev, fmt, ...) do { \
|
||||
if (qxl_log_level >= QXL_INFO_LEVEL) { \
|
||||
qxl_io_log(qdev, fmt, __VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
#define QXL_DEBUG(qdev, fmt, ...) do { \
|
||||
if (qxl_log_level >= QXL_DEBUG_LEVEL) { \
|
||||
qxl_io_log(qdev, fmt, __VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
#define QXL_INFO_ONCE(qdev, fmt, ...) do { \
|
||||
static int done; \
|
||||
if (!done) { \
|
||||
done = 1; \
|
||||
QXL_INFO(qdev, fmt, __VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define DRM_FILE_OFFSET 0x100000000ULL
|
||||
#define DRM_FILE_PAGE_OFFSET (DRM_FILE_OFFSET >> PAGE_SHIFT)
|
||||
|
||||
@@ -351,7 +327,7 @@ int qxl_check_idle(struct qxl_ring *ring);
|
||||
static inline void *
|
||||
qxl_fb_virtual_address(struct qxl_device *qdev, unsigned long physical)
|
||||
{
|
||||
QXL_INFO(qdev, "not implemented (%lu)\n", physical);
|
||||
DRM_DEBUG_DRIVER("not implemented (%lu)\n", physical);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user