From: Simon Glass Date: Mon, 1 Oct 2018 18:22:49 +0000 (-0600) Subject: dtoc: Fix the value of SetInt() X-Git-Tag: v2025.01-rc5-pxa1908~3370^2 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=41b781ddf1869f5349e05ace888979f3673fe8c6;p=u-boot.git dtoc: Fix the value of SetInt() This does not set the correct value at present. Fix it. Signed-off-by: Simon Glass --- diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index 2df2d4b0cc..9ad72f89ec 100644 --- a/tools/dtoc/fdt.py +++ b/tools/dtoc/fdt.py @@ -171,7 +171,7 @@ class Prop: val: Integer value (32-bit, single cell) """ self.bytes = struct.pack('>I', val); - self.value = val + self.value = self.bytes self.type = TYPE_INT self.dirty = True