summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-10-25 01:59:11 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-10-25 01:59:11 +0000
commited31ef0927bc60f9ecb24c1733aabb8540adc72b (patch)
treec0d697afb819f35f8c08227dd4f576f7a6342beb /tools
parent7dbda16a2352e6c935c47b49ecca3336bdc2a5da (diff)
Display one build definition per line
Diffstat (limited to 'tools')
-rw-r--r--tools/bccmd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/bccmd.c b/tools/bccmd.c
index 4d32c089..18d38766 100644
--- a/tools/bccmd.c
+++ b/tools/bccmd.c
@@ -48,7 +48,7 @@ static int cmd_builddef(int dd, int argc, char *argv[])
uint16_t seqnum = 0x4711, def = 0x0000, nextdef = 0x0000;
int err = 0;
- printf("Build definitions:");
+ printf("Build definitions:\n");
while (1) {
memset(buf, 0, sizeof(buf));
@@ -69,11 +69,9 @@ static int cmd_builddef(int dd, int argc, char *argv[])
def = nextdef;
- printf(" %s (0x%02x)", csr_builddeftostr(def), def);
+ printf("0x%04x - %s\n", def, csr_builddeftostr(def));
}
- printf("\n");
-
return err;
}