[PATCH 15/19] bootwrapper: Add dt_ops methods.
Mark A. Greer
mgreer at mvista.com
Tue Mar 13 09:49:13 EST 2007
On Mon, Mar 12, 2007 at 02:42:01PM -0600, Scott Wood wrote:
<snip>
> diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h
> index 2b569ad..6b4fd9b 100644
> --- a/arch/powerpc/boot/ops.h
> +++ b/arch/powerpc/boot/ops.h
<snip>
> +static inline int setprop_str(void *devp, const char *name, const char *buf)
> +{
> + if (dt_ops.setprop)
> + return dt_ops.setprop(devp, name, buf, strlen(buf));
Shouldn't that be "return dt_ops.setprop(devp, name, buf, strlen(buf) + 1);" ?
Mark
More information about the Linuxppc-dev
mailing list