Skip to content

Commit 5062910

Browse files
congwangtorvalds
authored andcommitted
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>
1 parent dc71768 commit 5062910

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/um/os-Linux/start_up.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,20 +244,20 @@ static void __init check_sysemu(void)
244244

245245
if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0,
246246
(void *) PTRACE_O_TRACESYSGOOD) < 0))
247-
fatal_perror("check_ptrace: PTRACE_OLDSETOPTIONS failed");
247+
fatal_perror("check_sysemu: PTRACE_OLDSETOPTIONS failed");
248248

249249
while (1) {
250250
count++;
251251
if (ptrace(PTRACE_SYSEMU_SINGLESTEP, pid, 0, 0) < 0)
252252
goto fail;
253253
CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED));
254254
if (n < 0)
255-
fatal_perror("check_ptrace : wait failed");
255+
fatal_perror("check_sysemu: wait failed");
256256

257257
if (WIFSTOPPED(status) &&
258258
(WSTOPSIG(status) == (SIGTRAP|0x80))) {
259259
if (!count) {
260-
non_fatal("check_ptrace : SYSEMU_SINGLESTEP "
260+
non_fatal("check_sysemu: SYSEMU_SINGLESTEP "
261261
"doesn't singlestep");
262262
goto fail;
263263
}
@@ -271,7 +271,7 @@ static void __init check_sysemu(void)
271271
else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP))
272272
count++;
273273
else {
274-
non_fatal("check_ptrace : expected SIGTRAP or "
274+
non_fatal("check_sysemu: expected SIGTRAP or "
275275
"(SIGTRAP | 0x80), got status = %d\n",
276276
status);
277277
goto fail;

0 commit comments

Comments
 (0)