Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uml: improve error messages

These error messages are from check_sysemu(), not check_ptrace().

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

WANG Cong and committed by
Linus Torvalds
5062910a dc717687

+4 -4
+4 -4
arch/um/os-Linux/start_up.c
··· 244 244 245 245 if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0, 246 246 (void *) PTRACE_O_TRACESYSGOOD) < 0)) 247 - fatal_perror("check_ptrace: PTRACE_OLDSETOPTIONS failed"); 247 + fatal_perror("check_sysemu: PTRACE_OLDSETOPTIONS failed"); 248 248 249 249 while (1) { 250 250 count++; ··· 252 252 goto fail; 253 253 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); 254 254 if (n < 0) 255 - fatal_perror("check_ptrace : wait failed"); 255 + fatal_perror("check_sysemu: wait failed"); 256 256 257 257 if (WIFSTOPPED(status) && 258 258 (WSTOPSIG(status) == (SIGTRAP|0x80))) { 259 259 if (!count) { 260 - non_fatal("check_ptrace : SYSEMU_SINGLESTEP " 260 + non_fatal("check_sysemu: SYSEMU_SINGLESTEP " 261 261 "doesn't singlestep"); 262 262 goto fail; 263 263 } ··· 271 271 else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) 272 272 count++; 273 273 else { 274 - non_fatal("check_ptrace : expected SIGTRAP or " 274 + non_fatal("check_sysemu: expected SIGTRAP or " 275 275 "(SIGTRAP | 0x80), got status = %d\n", 276 276 status); 277 277 goto fail;