mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
monitor: Add todo helper for missing LMP operations
This commit is contained in:
parent
47ae1a0d28
commit
195eb65225
@ -340,3 +340,17 @@ void lmp_packet(const void *data, uint8_t size)
|
||||
|
||||
lmp_data->func(data + off, size - off);
|
||||
}
|
||||
|
||||
void lmp_todo(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
printf("LMP operations with missing decodings:\n");
|
||||
|
||||
for (i = 0; lmp_table[i].str; i++) {
|
||||
if (lmp_table[i].func)
|
||||
continue;
|
||||
|
||||
printf("\t%s\n", lmp_table[i].str);
|
||||
}
|
||||
}
|
||||
|
@ -25,3 +25,5 @@
|
||||
#include <stdint.h>
|
||||
|
||||
void lmp_packet(const void *data, uint8_t size);
|
||||
|
||||
void lmp_todo(void);
|
||||
|
@ -34,6 +34,7 @@
|
||||
|
||||
#include "mainloop.h"
|
||||
#include "packet.h"
|
||||
#include "lmp.h"
|
||||
#include "analyze.h"
|
||||
#include "ellisys.h"
|
||||
#include "control.h"
|
||||
@ -147,6 +148,7 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
case '#':
|
||||
packet_todo();
|
||||
lmp_todo();
|
||||
return EXIT_SUCCESS;
|
||||
case 'v':
|
||||
printf("%s\n", VERSION);
|
||||
|
Loading…
Reference in New Issue
Block a user