]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
nvmap: print tag for the uncached allocations
authorSri Krishna chowdary <schowdary@nvidia.com>
Wed, 31 Dec 2014 06:34:52 +0000 (12:04 +0530)
committerSri Krishna Chowdary <schowdary@nvidia.com>
Mon, 12 Jan 2015 06:08:47 +0000 (22:08 -0800)
nvmap clients expect the library information apart from the
task pid and name. So, print the tag as well.

Change-Id: Ie492405325237cc2a5137117d7fdaadbc05db90b
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/668642
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
drivers/video/tegra/nvmap/nvmap_priv.h

index 23eda6aecbe0fd4535060dbfd9515b3c7dac12a3..101ec85aee99238972fa6ae05d749991e04d3b47 100644 (file)
@@ -324,11 +324,12 @@ static inline pgprot_t nvmap_pgprot(struct nvmap_handle *h, pgprot_t prot)
                        char task_comm[TASK_COMM_LEN];
                        h->owner->warned = 1;
                        get_task_comm(task_comm, h->owner->task);
-                       pr_err("PID %d: %s: WARNING: "
+                       pr_err("PID %d: %s: TAG: 0x%04x WARNING: "
                                "NVMAP_HANDLE_WRITE_COMBINE "
                                "should be used in place of "
                                "NVMAP_HANDLE_UNCACHEABLE on ARM64\n",
-                               h->owner->task->pid, task_comm);
+                               h->owner->task->pid, task_comm,
+                               h->userflags >> 16);
                }
 #endif
                return pgprot_noncached(prot);