projects/linux·commit b4cf95c6

[PATCH] uml: add a debugging message

b4cf95c6 · Jeff Dike <[email protected]> · 2007-03-06 01:42:19 -08:00

Add a debugging message in the case that mapping a stub fails.

Signed-off-by: Jeff Dike <[email protected]>
Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
b4cf95c69a72baf90b8f275294a3ff3d282ffe09
Parents
7c7a8949

Changes

1 files changed · +4 −1

FileStatusAddDelContent
arch/um/os-Linux/skas/process.cmodified+4−1View file

arch/um/os-Linux/skas/process.c

View file
diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c
index 9b34fe6..dda0678 100644
--- a/arch/um/os-Linux/skas/process.c
+++ b/arch/um/os-Linux/skas/process.c
@@ -419,9 +419,12 @@ void map_stub_pages(int fd, unsigned long code,
.offset = code_offset
} } });
n = os_write_file(fd, &mmop, sizeof(mmop));
- if(n != sizeof(mmop))
+ if(n != sizeof(mmop)){
+ printk("mmap args - addr = 0x%lx, fd = %d, offset = %llx\n",
+ code, code_fd, (unsigned long long) code_offset);
panic("map_stub_pages : /proc/mm map for code failed, "
"err = %d\n", -n);
+ }
if ( stack ) {
__u64 map_offset;