lib/display: Print the fb id, not its pointer in the set_fb() log message
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 6 Feb 2014 21:06:59 +0000 (21:06 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Tue, 11 Feb 2014 13:50:16 +0000 (13:50 +0000)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
lib/igt_kms.c

index b601c64..54e3cdd 100644 (file)
@@ -1412,8 +1412,8 @@ void igt_plane_set_fb(igt_plane_t *plane, struct kmstest_fb *fb)
        igt_pipe_t *pipe = plane->pipe;
        igt_display_t *display = pipe->display;
 
-       LOG(display, "%c.%d: plane_set_fb(%p)\n", pipe_name(pipe->pipe),
-           plane->index, fb);
+       LOG(display, "%c.%d: plane_set_fb(%d)\n", pipe_name(pipe->pipe),
+           plane->index, fb ? fb->fb_id : 0);
 
        plane->fb = fb;