drm/nouveau/pmu: Use %p4cc printk modifier to print FourCC codes
Subsystems (3)
PATCH 1/1 drm/nouveau/pmu: Use %p4cc printk modifier to print FourCC codes
Now that we can print FourCC codes directly using printk, make use of the feature in nouveau.
Signed-off-by Tian Tao <[email protected]>
--- drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gt215.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gt215.c +2 -5
@@ -127,11 +127,8 @@ gt215_pmu_recv(struct nvkm_pmu *pmu)/* right now there's no other expected responses from the engine, * so assume that any unexpected message is an error. */ -nvkm_warn (subdev,"%c%c%c%c %08x %08x %08x %08x\n" , - (char )((process &0x000000ff ) >>0 ), - (char )((process &0x0000ff00 ) >>8 ), - (char )((process &0x00ff0000 ) >>16 ), - (char )((process &0xff000000 ) >>24 ), +nvkm_warn (subdev,"%p4cc %08x %08x %08x %08x\n" , + &process, process, message, data0, data1); }
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel