summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-03-31 02:49:33 -0400
committerMatthias Hopf <mhopf@suse.de>2010-04-06 17:47:34 +0200
commitd0e46bd630088c87049f84cacb5b6ef112575b0f (patch)
treeb080e43e9156e202861d75e9e867c29a782f89fa
parent10d2e8ab1c95af563fdcac832026efdf76e7ed70 (diff)
clean up CTB_DS output formatting
Signed-off-by: Matthias Hopf <mhopf@suse.de>
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 53f72cb..c19bb5e 100644
--- a/main.c
+++ b/main.c
@@ -310,7 +310,8 @@ int sub_src (uint8_t *d, char *out, int type, int align, int size, int index) {
int op_ds (uint8_t *d, char *out) {
const optab_t *op = &optable[d[0]];
uint16_t size = *(uint16_t *) &d[1];
- out += sprintf (out, "%-5s %d bytes", op->name, size);
+ /* Multiline, because even the hexdump typically needs lots of space */
+ out += sprintf (out, "\n %-5s %d bytes", op->name, size);
return size + 3;
}