]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: nvmap: Fix format string for size_t
authorTerje Bergstrom <tbergstrom@nvidia.com>
Wed, 25 Mar 2015 16:38:01 +0000 (09:38 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Sun, 29 Mar 2015 03:42:23 +0000 (20:42 -0700)
pr_info() used %d to print a variable of type size_t. Change that to
use %zu instead.

Change-Id: Ic78bdd34bfc360e7fee0adf67ac4b9044eeba7ae
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/722821
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
drivers/video/tegra/nvmap/nvmap_init.c

index 66a19f93ad2b72d80772a6ed7bf236fee5dd35ea..7f973ac86458f26f4f79666d6aef6e66ed0ce704 100644 (file)
@@ -181,7 +181,7 @@ int nvmap_populate_ivm_carveout(struct device_node *n,
        if (of_property_read_u32(n, "alloc", &co->can_alloc))
                return -EINVAL;
 
-       pr_info("IVM carveout IPA:%p, size=%d, peer vmid=%d\n",
+       pr_info("IVM carveout IPA:%p, size=%zu, peer vmid=%d\n",
                (void *)(uintptr_t)co->base, co->size, co->peer);
 
        co->is_ivm    = true;