[U-Boot] printf("%d") breaks u-boot 2015.01+

Marek Vasut
2015-04-06T18:48:45Z

On Monday, April 06, 2015 at 08:14:44 PM, Pavel Machek wrote:
> On Mon 2015-04-06 16:59:55, Marek Vasut wrote:
> > On Monday, April 06, 2015 at 04:40:09 PM, Pavel Machek wrote:
> > > Hi!
> > >
> > > In u-boot 2015.04-rc, as soon as execution hits printf("%d"), it
> > > hangs. (Usually, that's after "DRAM: " message).
> >
> > printf("%d") expects an argument, so could it be that it touches
> > random piece of memory and thus hangs?
>
> It had an argument, sorry for confusion. I was actually doing this:
> the test with %s works, the one with %d kills it.
>
> I suspect too small stack...?

Does this happen in the SPL ? You can check the stack placement and
utilization with BDI to verigy your hypothesis.

Best regards,
Marek Vasut