[Skiboot] [PATCH 1/3] mambo_utils: make p return a value
stewart at linux.vnet.ibm.com
Fri Dec 23 16:17:00 AEDT 2016
Oliver O'Halloran <oohall at gmail.com> writes:
> Currently the "p" command uses puts to output the result to the user.
> This works for interactive usage, but it makes it impossible for use
> inside scripts. This patch changes the function to return the value
> rather than print it. The mambo interpreter prints the result of an
> expression so this should not cause any user visible changes.
> With this change you can use p in expressions:
> x [p r3] 4
> Which will display the word at the address in r3.
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
Series looks good, merged to master as of f38ed26
OPAL Architect, IBM.
More information about the Skiboot