printk("\nOut of memory for %s.\n")

Tim Waugh (tim@cyberelk.demon.co.uk)
Sat, 6 Mar 1999 20:57:19 +0000 (GMT)


It's a minor niggle, but there doesn't seem to be any reason for the
leading newline here. It makes for odd-looking log files.

Tim.
*/

--- linux/mm/memory.c~ Tue Jan 19 01:33:10 1999
+++ linux/mm/memory.c Sat Mar 6 20:55:28 1999
@@ -67,7 +67,7 @@
*/
void oom(struct task_struct * task)
{
- printk("\nOut of memory for %s.\n", task->comm);
+ printk(KERN_ERR "Out of memory for %s.\n", task->comm);
force_sig(SIGKILL, task);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/