I am proposing the following patch in mmnommu/mmap.c in 2.4:

        ret = -ENOMEM;
        result = kmalloc(len, GFP_KERNEL);
        if (!result) {
-               printk("Allocation of length %lu from process %d
failed\n",
-                      len, current->pid);
+               printk("Allocation of length %lu from process %d (%s)
failed\n",
+                      len, current->pid, current->comm);
                show_free_areas();
                goto error;
        }

This patch adds the name of the process to the bad allocation error
message.



This could also be applied to mm/nommu.c in the 2.6 kernel.



- Jate S.
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to