Hi Jate, Jate Sujjavanich wrote:
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.
Seems like a reasonable change, I have committed it. Regards Greg ------------------------------------------------------------------------ Greg Ungerer -- Principal Engineer EMAIL: [email protected] SnapGear, a McAfee Company PHONE: +61 7 3435 2888 825 Stanley St, FAX: +61 7 3891 3630 Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com _______________________________________________ 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
