Commit e5e6df7c authored by David Gibson's avatar David Gibson
Browse files

fdtdump: Fix bug printing bytestrings with negative values



On systems where 'char' is signed, fdtdump will currently print the wrong
thing on properties containing bytestring values with "negative" bytes
(that is with values from 0x80..0xff).  The fdtdump testcase is extended
to cover this case too.

This corrects the problem by forcing use of unsigned char - although this
is perhaps another indication that fdtdump is a buggy hack and if you want
to do real work you should use dtc -O dts.

Reported-by: default avatarIgor Prusov <Igor.V.Prusov@mcst.ru>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 067829ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment