patch-2.2.18 linux/fs/proc/array.c
Next file: linux/fs/proc/mem.c
Previous file: linux/fs/open.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Wed Nov 8 23:05:52 2000
- Orig file:
v2.2.17/fs/proc/array.c
- Orig date:
Sat Sep 9 18:42:49 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/fs/proc/array.c linux/fs/proc/array.c
@@ -295,8 +295,8 @@
"swap %u %u\n"
"intr 1 0",
#else
- "swap %u %u\n"
- "intr %u",
+ "swap %u %u\n"
+ "intr %u",
#endif
kstat.cpu_user,
kstat.cpu_nice,
@@ -319,7 +319,7 @@
#ifdef CONFIG_ARCH_S390
kstat.pswpout);
#else
- kstat.pswpout,
+ kstat.pswpout,
sum);
for (i = 0 ; i < NR_IRQS ; i++)
len += sprintf(buffer + len, " %u", kstat_irqs(i));
@@ -911,9 +911,6 @@
{
char * orig = buffer;
struct task_struct *tsk;
-#if __s390__
- int line,len;
-#endif
read_lock(&tasklist_lock);
tsk = find_task_by_pid(pid);
@@ -926,8 +923,7 @@
buffer = task_sig(tsk, buffer);
buffer = task_cap(tsk, buffer);
#if __s390__
- for(line=0;(len=sprintf_regs(line,buffer,tsk,NULL,NULL))!=0;line++)
- buffer+=len;
+ buffer = task_show_regs(tsk, buffer);
#endif
return buffer - orig;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)