mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
drm/nouveau/core/subdev: compile out messages for unwanted debug levels
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
153b642fcb
commit
82be74ee3b
@ -33,7 +33,7 @@ void nvkm_subdev_intr(struct nvkm_subdev *);
|
||||
/* subdev logging */
|
||||
#define nvkm_printk_(s,l,p,f,a...) do { \
|
||||
const struct nvkm_subdev *_subdev = (s); \
|
||||
if (_subdev->debug >= (l)) { \
|
||||
if (CONFIG_NOUVEAU_DEBUG >= (l) && _subdev->debug >= (l)) { \
|
||||
dev_##p(_subdev->device->dev, "%s: "f, \
|
||||
nvkm_subdev_name[_subdev->index], ##a); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user