diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2013-04-02 14:03:38 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-05-18 16:35:11 +0400 |
commit | e24fed4ed4cb006c76924dacb1274f71477b9e3c (patch) | |
tree | 4079b32ab36840f823b4f81c9956809e38ca1000 /linux-user | |
parent | 489ed4bbae309a6d897f6e037481c4c04f0737b5 (diff) | |
download | qemu-e24fed4ed4cb006c76924dacb1274f71477b9e3c.zip qemu-e24fed4ed4cb006c76924dacb1274f71477b9e3c.tar.gz qemu-e24fed4ed4cb006c76924dacb1274f71477b9e3c.tar.bz2 |
fix /proc/self/maps output
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 <christophe.lyon@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 30e93bc..1b3c0ed 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -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); } } |