diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2018-05-24 16:29:50 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2018-05-24 16:29:50 +0200 |
commit | 98ec05de7647fc6af72fd59f5707d5d0c42acc86 (patch) | |
tree | 9d25403d7774a01571cd9a2cfb89f10c2e451f93 /monitor/control.c | |
parent | 6e473eba73c2a5cf4f5acde4af12c626bdffe996 (diff) | |
download | bluez-98ec05de7647fc6af72fd59f5707d5d0c42acc86.tar.gz |
monitor: Add command line option to disable pager support
Diffstat (limited to 'monitor/control.c')
-rw-r--r-- | monitor/control.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/monitor/control.c b/monitor/control.c index ccbd8730d..150bdcc44 100644 --- a/monitor/control.c +++ b/monitor/control.c @@ -1378,7 +1378,7 @@ bool control_writer(const char *path) return !!btsnoop_file; } -void control_reader(const char *path) +void control_reader(const char *path, bool pager) { unsigned char buf[BTSNOOP_MAX_PACKET_SIZE]; uint16_t pktlen; @@ -1403,7 +1403,8 @@ void control_reader(const char *path) break; } - open_pager(); + if (pager) + open_pager(); switch (format) { case BTSNOOP_FORMAT_HCI: @@ -1437,7 +1438,8 @@ void control_reader(const char *path) break; } - close_pager(); + if (pager) + close_pager(); btsnoop_unref(btsnoop_file); } |