VIGS: Removed a compilation warnning
authorjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 15 Jul 2015 02:48:31 +0000 (11:48 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 15 Jul 2015 04:00:15 +0000 (13:00 +0900)
Changed the format specifier from '%u' to '%pa' for the type 'resource_size_t'.
Here is an excerpt from the document below,
'https://www.kernel.org/doc/Documentation/printk-formats.txt',
"
Physical addresses types phys_addr_t:

    %pa[p]  0x01234567 or 0x0123456789abcdef

    For printing a phys_addr_t type (and its derivatives, such as
    resource_size_t) which can vary based on build options, regardless of
    the width of the CPU data path. Passed by reference.
".

Change-Id: Ia0d72411de707cb7f3aaba7d91e86f79f5c2b607
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
drivers/gpu/drm/vigs/vigs_device.c

index e944f4c..1e97673 100644 (file)
@@ -132,7 +132,7 @@ int vigs_device_init(struct vigs_device *vigs_dev,
 
     if ((vigs_dev->io_size < sizeof(void*)) ||
         ((vigs_dev->io_size % sizeof(void*)) != 0)) {
-        DRM_ERROR("IO bar has bad size: %u bytes\n", vigs_dev->io_size);
+        DRM_ERROR("IO bar has bad size: %pa bytes\n", &vigs_dev->io_size);
         ret = -ENODEV;
         goto fail1;
     }