mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 21:47:04 +07:00
drm/nouveau/flcn: add printk macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
af696a61a2
commit
3d0482ec28
@ -20,4 +20,13 @@ void nvkm_falcon_v1_disable(struct nvkm_falcon *);
|
||||
|
||||
void gp102_sec2_flcn_bind_context(struct nvkm_falcon *, struct nvkm_memory *);
|
||||
int gp102_sec2_flcn_enable(struct nvkm_falcon *);
|
||||
|
||||
#define FLCN_PRINTK(t,f,fmt,a...) do { \
|
||||
if (nvkm_subdev_name[(f)->owner->index] != (f)->name) \
|
||||
nvkm_##t((f)->owner, "%s: "fmt"\n", (f)->name, ##a); \
|
||||
else \
|
||||
nvkm_##t((f)->owner, fmt"\n", ##a); \
|
||||
} while(0)
|
||||
#define FLCN_DBG(f,fmt,a...) FLCN_PRINTK(debug, (f), fmt, ##a)
|
||||
#define FLCN_ERR(f,fmt,a...) FLCN_PRINTK(error, (f), fmt, ##a)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user