mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-02 16:44:18 +08:00
monitor: Make field printing a global helper
This commit is contained in:
parent
127a07fd0d
commit
e3df56ff6e
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user