diff options
author | Simon Glass <sjg@chromium.org> | 2018-07-06 10:27:32 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-07-09 09:11:00 -0600 |
commit | dfe5f5b97d369b0fcf24c792b0fc83661aa24afa (patch) | |
tree | 22dc713e7b5ec2be3f4aef60521e9e54651b712a /tools/dtoc | |
parent | 760b7170c5e44c771397eaf57b7197b621373809 (diff) | |
download | u-boot-dfe5f5b97d369b0fcf24c792b0fc83661aa24afa.tar.gz u-boot-dfe5f5b97d369b0fcf24c792b0fc83661aa24afa.tar.xz u-boot-dfe5f5b97d369b0fcf24c792b0fc83661aa24afa.zip |
dtoc: Fix some minor errors
Fix some comments and a printf string which is incorrect.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc')
-rw-r--r-- | tools/dtoc/dtb_platdata.py | 3 | ||||
-rwxr-xr-x | tools/dtoc/dtoc.py | 4 | ||||
-rw-r--r-- | tools/dtoc/fdt.py | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/tools/dtoc/dtb_platdata.py b/tools/dtoc/dtb_platdata.py index b1323aef19..6cb1259446 100644 --- a/tools/dtoc/dtb_platdata.py +++ b/tools/dtoc/dtb_platdata.py @@ -316,7 +316,8 @@ class DtbPlatdata(object): total = na + ns if reg.type != fdt.TYPE_INT: - raise ValueError("Node '%s' reg property is not an int") + raise ValueError("Node '%s' reg property is not an int" % + node.name) if len(reg.value) % total: raise ValueError("Node '%s' reg property has %d cells " 'which is not a multiple of na + ns = %d + %d)' % diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py index c891b06380..2e6a4db8bc 100755 --- a/tools/dtoc/dtoc.py +++ b/tools/dtoc/dtoc.py @@ -40,8 +40,8 @@ def run_tests(args): """Run all the test we have for dtoc Args: - args: List of positional args provided to binman. This can hold a test - name to execute (as in 'binman -t testSections', for example) + args: List of positional args provided to dtoc. This can hold a test + name to execute (as in 'dtoc -t test_empty_file', for example) """ import test_dtoc diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index c1d04d48e8..e7703c1c75 100644 --- a/tools/dtoc/fdt.py +++ b/tools/dtoc/fdt.py @@ -428,7 +428,7 @@ class Fdt: return node def FdtScan(fname): - """Returns a new Fdt object from the implementation we are using""" + """Returns a new Fdt object""" dtb = Fdt(fname) dtb.Scan() return dtb |