drm/i915/gvt: fix an error string format
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Thu, 20 Oct 2016 22:05:58 +0000 (18:05 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 25 Oct 2016 02:35:54 +0000 (10:35 +0800)
It is better to use %p format for void pointers instead of casting them
because a void* is not necessary a 64 bits value.

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c

index b35bda0ce46b5de2014b30b43ad4caace9cfa32e..6554da9f9f5b7f753bce659c7d12c425d38cd368 100644 (file)
@@ -1944,7 +1944,7 @@ static int create_scratch_page(struct intel_vgpu *vgpu)
        mfn = intel_gvt_hypervisor_virt_to_mfn(vaddr);
 
        if (mfn == INTEL_GVT_INVALID_ADDR) {
-               gvt_err("fail to translate vaddr:0x%llx\n", (u64)vaddr);
+               gvt_err("fail to translate vaddr: 0x%p\n", vaddr);
                __free_page(gtt->scratch_page);
                gtt->scratch_page = NULL;
                return -ENXIO;