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

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)