[PATCH] setup_kcore(): Fix incorrect function name in panic() call.

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Fri Nov 17 15:11:46 EST 2006


On Fri, 17 Nov 2006, Jeremy Kerr wrote:
> 
> > -			panic("mem_init: kmalloc failed\n");
> > +			panic("setup_kcore: kmalloc failed\n");
> 
> How about:
> 	
> 	panic("%s: kmalloc_failed\n", __FUNCTION__);
> 
> To prevent this happening again?

You're right, thanks for the suggestion!

Gr{oetje,eeting}s,

						Geert

P.S. I was quite convinced panic() didn't do printf() style formatting, but
     apparently that's not (no longer?) true.
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven at sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium



More information about the Linuxppc-dev mailing list