patch-2.4.21 linux-2.4.21/arch/s390/kernel/debug.c

Next file: linux-2.4.21/arch/s390/kernel/entry.S
Previous file: linux-2.4.21/arch/ppc64/xmon/xmon.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/s390/kernel/debug.c linux-2.4.21/arch/s390/kernel/debug.c
@@ -459,9 +459,9 @@
 		size = MIN((len - count), (size - entry_offset));
 
 		if(size){
-			if ((rc = copy_to_user(user_buf + count, 
-					p_info->temp_buf + entry_offset, size)))
-			return rc;
+			if (copy_to_user(user_buf + count, 
+					p_info->temp_buf + entry_offset, size))
+				return -EFAULT;
 		}
 		count += size;
 		entry_offset = 0;
@@ -744,8 +744,10 @@
                         id->name, new_level, 0, DEBUG_MAX_LEVEL);
         } else {
                 id->level = new_level;
+#ifdef DEBUG
                 printk(KERN_INFO 
 			"debug: %s: new level %i\n",id->name,id->level);
+#endif
         }
 	spin_unlock_irqrestore(&id->lock,flags);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)