drm/nouveau/core: drop the pointer value in debug printk output
authorBen Skeggs <bskeggs@redhat.com>
Fri, 5 Dec 2014 00:55:50 +0000 (10:55 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:14:46 +0000 (12:14 +1000)
Makes the output slightly less useful, in that objects with the same
class handle can't be distinguished from each other now.

Upcoming commits will name objects with user-readable strings to fix
this problem.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/printk.c

index 03e0060..d6c4d90 100644 (file)
@@ -65,8 +65,8 @@ nv_printk_(struct nouveau_object *object, int level, const char *fmt, ...)
                char obuf[64], *ofmt = "";
 
                if (object->engine) {
-                       snprintf(obuf, sizeof(obuf), "[0x%08x][%p]",
-                                nv_hclass(object), object);
+                       snprintf(obuf, sizeof(obuf), "[0x%08x]",
+                                nv_hclass(object));
                        ofmt = obuf;
                        subdev = object->engine;
                        device = object->engine;