Re: [PATCH] lsprop: Fixes to work correctly when built little endian

2013-01-07 Thread Benjamin Herrenschmidt
On Mon, 2013-01-07 at 15:23 +1100, Michael Ellerman wrote: Add and use dt_swap_int() to byte swap on little endian. Also declare buf as unsigned char, so that we don't sign extend when printing values from it. Signed-off-by: Michael Ellerman mich...@ellerman.id.au --- Ben, based on

Re: [PATCH] lsprop: Fixes to work correctly when built little endian

2013-01-07 Thread Nathan Fontenot
On 01/07/2013 08:12 PM, Benjamin Herrenschmidt wrote: On Mon, 2013-01-07 at 15:23 +1100, Michael Ellerman wrote: Add and use dt_swap_int() to byte swap on little endian. Also declare buf as unsigned char, so that we don't sign extend when printing values from it. Signed-off-by: Michael

[PATCH] lsprop: Fixes to work correctly when built little endian

2013-01-06 Thread Michael Ellerman
Add and use dt_swap_int() to byte swap on little endian. Also declare buf as unsigned char, so that we don't sign extend when printing values from it. Signed-off-by: Michael Ellerman mich...@ellerman.id.au --- Ben, based on your patch, can you add your s-o-b? :