mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Limit binary dump bytes in .properties output
Some device trees can contain large chunks of binary data that result in .properties output to get lost in the dump of all binary bytes. Put an upper limit of the bytes dumped. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
committed by
Mark Cave-Ayland
parent
0e0afae657
commit
1be046b641
@ -307,15 +307,16 @@
|
||||
|
||||
: .p-bytes? ( data len -- 1 | data len 0 )
|
||||
." -- " dup . ." : "
|
||||
swap >r 0
|
||||
swap >r dup 100 min 0
|
||||
begin 2dup > while
|
||||
dup r@ + c@
|
||||
( len n ch )
|
||||
|
||||
2 0.r space
|
||||
1+
|
||||
repeat
|
||||
2drop r> drop 1
|
||||
repeat
|
||||
drop > if ." ..." then
|
||||
r> drop 1
|
||||
;
|
||||
|
||||
\ this function tries to heuristically determine the data format
|
||||
|
||||
Reference in New Issue
Block a user