summaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-05 12:25:23 -0700
committerSimon Glass <sjg@chromium.org>2015-04-16 19:27:42 -0600
commitfa67f90fc32adaa0c8001e3ae49e81c91d0c9d92 (patch)
treedbb6b99dc9dc1bee8b86cd14925081dc14ec9073 /test/dm
parent02c07b3741f1b825934b1a6eb8f23530532dc426 (diff)
downloadu-boot-imx-fa67f90fc32adaa0c8001e3ae49e81c91d0c9d92.zip
u-boot-imx-fa67f90fc32adaa0c8001e3ae49e81c91d0c9d92.tar.gz
u-boot-imx-fa67f90fc32adaa0c8001e3ae49e81c91d0c9d92.tar.bz2
dm: Show both allocated and requested seq numbers in 'dm uclass'
Both of these values are useful for understanding what is going on, so show them both. The requested number comes from a device tree alias. The allocated one is set up when the device is activated, and is unique throughout the uclass. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm')
-rw-r--r--test/dm/cmd_dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dm/cmd_dm.c b/test/dm/cmd_dm.c
index 79a674e..507f260 100644
--- a/test/dm/cmd_dm.c
+++ b/test/dm/cmd_dm.c
@@ -77,8 +77,8 @@ static void dm_display_line(struct udevice *dev)
printf("- %c %s @ %08lx",
dev->flags & DM_FLAG_ACTIVATED ? '*' : ' ',
dev->name, (ulong)map_to_sysmem(dev));
- if (dev->req_seq != -1)
- printf(", %d", dev->req_seq);
+ if (dev->seq != -1 || dev->req_seq != -1)
+ printf(", seq-%d, (req=%d)", dev->seq, dev->req_seq);
puts("\n");
}