fs: create helper file_user_path() for user displayed mapped file path
[linux-2.6-microblaze.git] / arch / arc / kernel / troubleshoot.c
index d5b3ed2..c380d8c 100644 (file)
@@ -90,10 +90,12 @@ static void show_faulting_vma(unsigned long address)
         */
        if (vma) {
                char buf[ARC_PATH_MAX];
-               char *nm = "?";
+               char *nm = "anon";
 
                if (vma->vm_file) {
-                       nm = file_path(vma->vm_file, buf, ARC_PATH_MAX-1);
+                       /* XXX: can we use %pD below and get rid of buf? */
+                       nm = d_path(file_user_path(vma->vm_file), buf,
+                                   ARC_PATH_MAX-1);
                        if (IS_ERR(nm))
                                nm = "?";
                }