提交 dfe5f5b9 编写于 作者: S Simon Glass

dtoc: Fix some minor errors

Fix some comments and a printf string which is incorrect.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 760b7170
......@@ -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)' %
......
......@@ -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
......
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册