diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:27:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:05 -0400 |
commit | ba180fd437156f7fd8cfb2fdd021d949eeef08d6 (patch) | |
tree | b9f38b9cdd7a5b1aacf00341d1948314663c5871 /arch/um/os-Linux/registers.c | |
parent | 77bf4400319db9d2a8af6b00c2be6faa0f3d07cb (diff) |
uml: style fixes pass 3
Formatting changes in the files which have been changed in the course
of folding foo_skas functions into their callers. These include:
copyright updates
header file trimming
style fixes
adding severity to printks
These changes should be entirely non-functional.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/os-Linux/registers.c')
-rw-r--r-- | arch/um/os-Linux/registers.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/um/os-Linux/registers.c b/arch/um/os-Linux/registers.c index ce0b791160e6..14732f98e0a2 100644 --- a/arch/um/os-Linux/registers.c +++ b/arch/um/os-Linux/registers.c | |||
@@ -1,13 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2004 PathScale, Inc | 2 | * Copyright (C) 2004 PathScale, Inc |
3 | * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
3 | * Licensed under the GPL | 4 | * Licensed under the GPL |
4 | */ | 5 | */ |
5 | 6 | ||
6 | #include <errno.h> | 7 | #include <errno.h> |
7 | #include <string.h> | 8 | #include <string.h> |
8 | #include <sys/ptrace.h> | 9 | #include <sys/ptrace.h> |
9 | #include "user.h" | ||
10 | #include "sysdep/ptrace.h" | 10 | #include "sysdep/ptrace.h" |
11 | #include "user.h" | ||
11 | 12 | ||
12 | /* This is set once at boot time and not changed thereafter */ | 13 | /* This is set once at boot time and not changed thereafter */ |
13 | 14 | ||
@@ -23,7 +24,7 @@ void save_registers(int pid, struct uml_pt_regs *regs) | |||
23 | int err; | 24 | int err; |
24 | 25 | ||
25 | err = ptrace(PTRACE_GETREGS, pid, 0, regs->regs); | 26 | err = ptrace(PTRACE_GETREGS, pid, 0, regs->regs); |
26 | if(err < 0) | 27 | if (err < 0) |
27 | panic("save_registers - saving registers failed, errno = %d\n", | 28 | panic("save_registers - saving registers failed, errno = %d\n", |
28 | errno); | 29 | errno); |
29 | } | 30 | } |
@@ -33,7 +34,7 @@ void restore_registers(int pid, struct uml_pt_regs *regs) | |||
33 | int err; | 34 | int err; |
34 | 35 | ||
35 | err = ptrace(PTRACE_SETREGS, pid, 0, regs->regs); | 36 | err = ptrace(PTRACE_SETREGS, pid, 0, regs->regs); |
36 | if(err < 0) | 37 | if (err < 0) |
37 | panic("restore_registers - saving registers failed, " | 38 | panic("restore_registers - saving registers failed, " |
38 | "errno = %d\n", errno); | 39 | "errno = %d\n", errno); |
39 | } | 40 | } |
@@ -43,7 +44,7 @@ void init_registers(int pid) | |||
43 | int err; | 44 | int err; |
44 | 45 | ||
45 | err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); | 46 | err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); |
46 | if(err) | 47 | if (err) |
47 | panic("check_ptrace : PTRACE_GETREGS failed, errno = %d", | 48 | panic("check_ptrace : PTRACE_GETREGS failed, errno = %d", |
48 | errno); | 49 | errno); |
49 | } | 50 | } |