]> Git Repo - qemu.git/commitdiff
fix /proc/self/maps output
authorChristophe Lyon <[email protected]>
Tue, 2 Apr 2013 12:03:38 +0000 (14:03 +0200)
committerMichael Tokarev <[email protected]>
Sat, 18 May 2013 12:35:11 +0000 (16:35 +0400)
Add a space at end of line when there is no filename to print, to
conform to linux kernel format (see show_map_vma() in
fs/proc/task_mmu.c).

Signed-off-by: Christophe Lyon <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
linux-user/syscall.c

index 30e93bc0d01b329ebc8fc68361b4c16af2775689..1b3c0ed5f797b59973d888faa9ac907451722d3c 100644 (file)
@@ -5050,10 +5050,10 @@ static int open_self_maps(void *cpu_env, int fd)
         }
         if (h2g_valid(min) && h2g_valid(max)) {
             dprintf(fd, TARGET_ABI_FMT_lx "-" TARGET_ABI_FMT_lx
-                    " %c%c%c%c %08" PRIx64 " %02x:%02x %d%s%s\n",
+                    " %c%c%c%c %08" PRIx64 " %02x:%02x %d %s%s\n",
                     h2g(min), h2g(max), flag_r, flag_w,
                     flag_x, flag_p, offset, dev_maj, dev_min, inode,
-                    path[0] ? "          " : "", path);
+                    path[0] ? "         " : "", path);
         }
     }
 
This page took 0.028228 seconds and 4 git commands to generate.