diff options
author | Tom Rini <trini@konsulko.com> | 2019-04-24 12:27:29 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-24 12:27:29 -0400 |
commit | 7d994067424776b6184872b82fcaf4c0b95528f9 (patch) | |
tree | f8aaab8764ad4bc88c6389f8ee6b1ee75360b7a6 /common/command.c | |
parent | 180e38ad2dbb3340cc71fb4fa335a68f2a4122ef (diff) | |
parent | 8781d04f422e110fef864dd849085054fe5b0e65 (diff) | |
download | u-boot-7d994067424776b6184872b82fcaf4c0b95528f9.tar.gz |
Merge tag 'pull-24apr19' of git://git.denx.de/u-boot-dm
Various minor sandbox iumprovements
Fixes for tracing with sandbox
Refactoring for boot_get_fdt()
Diffstat (limited to 'common/command.c')
-rw-r--r-- | common/command.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c index e14d1fa1d6..e192bb2a61 100644 --- a/common/command.c +++ b/common/command.c @@ -574,6 +574,20 @@ enum command_ret_t cmd_process(int flag, int argc, char * const argv[], enum command_ret_t rc = CMD_RET_SUCCESS; cmd_tbl_t *cmdtp; +#if defined(CONFIG_SYS_XTRACE) + char *xtrace; + + xtrace = env_get("xtrace"); + if (xtrace) { + puts("+"); + for (int i = 0; i < argc; i++) { + puts(" "); + puts(argv[i]); + } + puts("\n"); + } +#endif + /* Look up command in command table */ cmdtp = find_cmd(argv[0]); if (cmdtp == NULL) { |