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>
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;
}