# Re: \[RFC/PATCH 2/3\] of: add of\_lookup\_stdout() utility function

- From: David Miller \<davem@davemloft.net\>
- Date: 2008-08-06 07:19:15 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2008/08/9444210
- Thread: https://ratatoskr.run/linuxppc-dev/2008/08/9444193/t.md

```text
From: "Grant Likely" <redacted>
Date: Wed, 6 Aug 2008 00:35:24 -0600

> On Wed, Aug 6, 2008 at 12:32 AM, David Miller [ref] wrote:
> > From: Grant Likely <redacted>
> > Date: Wed, 06 Aug 2008 00:02:44 -0600
> >
> >> of_lookup_stdout() is useful for figuring out what device to use as output
> >> for early boot progress messages.  It returns the node pointed to by the
> >> linux,stdout-path property in the chosen node.
> >>
> >> Signed-off-by: Grant Likely <redacted>
> >
> > On sparc platforms this is obtained differently.  We obtain the 32-bit
> > instance value of "/chosen/stdout" and convert that into a prom device
> > node path using "instance-to-path".
> 
> How about if I modify it to try both methods?

Sure, that would be nice.
```
