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
- Lines: 24
- Date:
2003-06-13 07:51:32.000000000 -0700
- Orig file:
linux-2.4.20/arch/s390/kernel/debug.c
- Orig date:
2002-11-28 15:53:11.000000000 -0800
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)