]> git.baikalelectronics.ru Git - uboot.git/commit
common: command: Add command execution tracer.
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>
Fri, 5 Apr 2019 11:03:46 +0000 (13:03 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 24 Apr 2019 02:26:43 +0000 (20:26 -0600)
commit6462d700c7c3f7b232d99240a2a7baa2592db48b
tree15f4fc440cdca7fd954ee2a5ecc226c82930aa7c
parent08377eca735fc487a79e24a95fc31a06d898eade
common: command: Add command execution tracer.

When using boot scripts it can become quite hard to understand
which commands are actually executed during bootup (e.g. where
is a kernel image loaded from or which DTB is in use).

Shell scripts suffer from a similar problem and many shells address
this problem with a command execution tracer (e.g. BASH has xtrace,
which can be enabled by "set -x").

This patch introduces a command tracer for U-Boot, which prints
every command with its arguments before it is executed.

Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
cmd/Kconfig
common/command.c