monitor: Add todo helper for missing LMP operations

This commit is contained in:
Marcel Holtmann 2014-01-08 00:53:22 -08:00
parent 47ae1a0d28
commit 195eb65225
3 changed files with 18 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -25,3 +25,5 @@
#include <stdint.h>
void lmp_packet(const void *data, uint8_t size);
void lmp_todo(void);

View File

@ -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);