#include "ast.h"
#include "objstack.h"
-#if BT_LOG_ENABLED_VERBOSE
+#if BT_LOG_ENABLED_TRACE
# define YYDEBUG 1
-# define YYFPRINTF(_stream, _fmt, args...) BT_LOGV(_fmt, ## args)
+# define YYFPRINTF(_stream, _fmt, args...) BT_LOGT(_fmt, ## args)
#else
# define YYDEBUG 0
#endif
{
struct ctf_scanner_scope *ns;
- BT_LOGV("Pushing scope: scanner-addr=%p", scanner);
+ BT_LOGT("Pushing scope: scanner-addr=%p", scanner);
ns = malloc(sizeof(struct ctf_scanner_scope));
init_scope(ns, scanner->cs);
scanner->cs = ns;
{
struct ctf_scanner_scope *os;
- BT_LOGV("Popping scope: scanner-addr=%p", scanner);
+ BT_LOGT("Popping scope: scanner-addr=%p", scanner);
os = scanner->cs;
scanner->cs = os->parent;
finalize_scope(os);
int ret;
ret = GPOINTER_TO_INT(g_hash_table_lookup(s->classes, id));
- BT_LOGV("Looked up type: scanner-addr=%p, id=\"%s\", ret=%d",
+ BT_LOGT("Looked up type: scanner-addr=%p, id=\"%s\", ret=%d",
s, id, ret);
return ret;
}
struct ctf_scanner_scope *it;
int ret = 0;
- for (it = scanner->cs; it != NULL; it = it->parent) {
+ for (it = scanner->cs; it; it = it->parent) {
if (lookup_type(it, id)) {
ret = 1;
break;
}
}
- BT_LOGV("Found if ID is type: scanner-addr=%p, id=\"%s\", ret=%d",
+ BT_LOGT("Found if ID is type: scanner-addr=%p, id=\"%s\", ret=%d",
scanner, id, ret);
return ret;
}
static void add_type(struct ctf_scanner *scanner, char *id)
{
- BT_LOGV("Adding type: scanner-addr=%p, id=\"%s\"",
+ BT_LOGT("Adding type: scanner-addr=%p, id=\"%s\"",
scanner, id);
if (lookup_type(scanner->cs, id))
return;