From 458e3278227563965b079ad2d3e6fc07ac4ef83f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 4 Nov 2012 14:05:43 +0100 Subject: [PATCH] monitor: Use smaller indentation for packet content --- monitor/l2cap.c | 2 +- monitor/packet.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monitor/l2cap.c b/monitor/l2cap.c index 383d49c09..c70d05018 100644 --- a/monitor/l2cap.c +++ b/monitor/l2cap.c @@ -31,7 +31,7 @@ #include "packet.h" #include "l2cap.h" -#define print_field(fmt, args...) printf("%-12c" fmt "\n", ' ', ## args) +#define print_field(fmt, args...) printf("%-10c" fmt "\n", ' ', ## args) struct sig_opcode_data { uint8_t opcode; diff --git a/monitor/packet.c b/monitor/packet.c index e5f9e7526..76c3793d0 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -188,7 +188,7 @@ static void print_packet(struct timeval *tv, uint16_t index, char ident, printf("%s\n", line); } -#define print_field(fmt, args...) printf("%-12c" fmt "\n", ' ', ## args) +#define print_field(fmt, args...) printf("%-10c" fmt "\n", ' ', ## args) static const struct { uint8_t error; @@ -1075,7 +1075,7 @@ void packet_hexdump(const unsigned char *buf, uint16_t len) str[47] = ' '; str[48] = ' '; str[65] = '\0'; - print_text(COLOR_WHITE, "%-12c%s\n", ' ', str); + print_text(COLOR_WHITE, "%-10c%s\n", ' ', str); str[0] = ' '; } } @@ -1091,7 +1091,7 @@ void packet_hexdump(const unsigned char *buf, uint16_t len) str[47] = ' '; str[48] = ' '; str[65] = '\0'; - print_text(COLOR_WHITE, "%-12c%s\n", ' ', str); + print_text(COLOR_WHITE, "%-10c%s\n", ' ', str); } } -- 2.47.3