SHA256
1
0
forked from pool/qemu
qemu/0048-XXX-fix-prov-self-maps-major-minor-.patch
Alexander Graf 13aeef2aad - compile fixes for ppc64abi32
- fix update_fit.sh script if wc -c is 40
- fix stale tbs after mmap

OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=64
2012-05-07 10:08:51 +00:00

32 lines
1.4 KiB
Diff

From 9a860d428d123648b31780c238eacf9e606f7ff2 Mon Sep 17 00:00:00 2001
From: Alexander Graf <agraf@suse.de>
Date: Mon, 12 Mar 2012 14:46:06 +0100
Subject: [PATCH] XXX fix prov/self/maps major/minor to read/write hex
---
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 cbd37f6..f064484 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4861,7 +4861,7 @@ static int open_self_maps(void *cpu_env, int fd)
uint64_t min, max, offset;
char flag_r, flag_w, flag_x, flag_p;
char path[512] = "";
- fields = sscanf(line, "%"PRIx64"-%"PRIx64" %c%c%c%c %"PRIx64" %d:%d %d"
+ fields = sscanf(line, "%"PRIx64"-%"PRIx64" %c%c%c%c %"PRIx64" %x:%x %d"
" %512s", &min, &max, &flag_r, &flag_w, &flag_x,
&flag_p, &offset, &dev_maj, &dev_min, &inode, path);
@@ -4873,7 +4873,7 @@ static int open_self_maps(void *cpu_env, int fd)
}
if (h2g_valid(min) && h2g_valid(max)) {
dprintf(fd, TARGET_FMT_lx "-" TARGET_FMT_lx " %c%c%c%c %08" PRIx64
- " %02d:%02d %d%s%s\n", h2g(min), h2g(max), flag_r, flag_w,
+ " %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);
}