monitor: Make field printing a global helper

This commit is contained in:
Marcel Holtmann 2012-11-08 15:50:41 +01:00
parent 127a07fd0d
commit e3df56ff6e
3 changed files with 3 additions and 4 deletions

View File

@ -24,6 +24,8 @@
#include <stdbool.h>
#define print_field(fmt, args...) printf("%-8c" fmt "\n", ' ', ## args)
bool use_color(void);
int num_columns(void);

View File

@ -29,10 +29,9 @@
#include <bluetooth/bluetooth.h>
#include "packet.h"
#include "display.h"
#include "l2cap.h"
#define print_field(fmt, args...) printf("%-8c" fmt "\n", ' ', ## args)
struct sig_opcode_data {
uint8_t opcode;
const char *str;

View File

@ -238,8 +238,6 @@ static void print_packet(struct timeval *tv, uint16_t index, char ident,
printf("%s\n", line);
}
#define print_field(fmt, args...) printf("%-8c" fmt "\n", ' ', ## args)
static const struct {
uint8_t error;
const char *str;