Debug outputs will show with launch test with param -vv
{
int c;
+ bt_verbose = 0;
bt_filename = argv[0];
while ((c = getopt(argc, argv, "lcftv")) >= 0)
break;
case 'v':
- bt_verbose = 1;
+ bt_verbose++;
break;
default:
return;
usage:
- printf("Usage: %s [-l] [-c] [-f] [-t] [-v] [<test_id>]\n", argv[0]);
+ printf("Usage: %s [-l] [-c] [-f] [-t] [-vv] [<test_id>]\n", argv[0]);
exit(3);
}
#define bt_note(format, ...) \
do { if (bt_verbose) bt_log(format, ##__VA_ARGS__); } while (0)
+#define bt_debug(format, ...) \
+ do { if (bt_verbose > 1) printf(format, ##__VA_ARGS__); } while (0)
+
#define bt_abort() \
bt_abort_msg("Aborted at %s:%d", __FILE__, __LINE__)