projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debug printing: cleanup
[babeltrace.git]
/
formats
/
ctf
/
metadata
/
ctf-parser.y
diff --git
a/formats/ctf/metadata/ctf-parser.y
b/formats/ctf/metadata/ctf-parser.y
index 38031b007d851cb8082703b556c7ee921c544e03..7847a85d2664c6149ea0b3ecb527f0487fd6af27 100644
(file)
--- a/
formats/ctf/metadata/ctf-parser.y
+++ b/
formats/ctf/metadata/ctf-parser.y
@@
-28,8
+28,7
@@
#include "ctf-parser.h"
#include "ctf-ast.h"
#include "ctf-parser.h"
#include "ctf-ast.h"
-#define printf_dbg(fmt, args...) fprintf(stderr, "%s: " fmt, __func__, args)
-#define printf_dbg_noarg(fmt) fprintf(stderr, "%s: " fmt, __func__)
+#define printf_dbg(fmt, args...) fprintf(stderr, "%s: " fmt, __func__, ## args)
int yyparse(struct ctf_scanner *scanner);
int yylex(union YYSTYPE *yyval, struct ctf_scanner *scanner);
int yyparse(struct ctf_scanner *scanner);
int yylex(union YYSTYPE *yyval, struct ctf_scanner *scanner);
@@
-87,7
+86,7
@@
static void push_scope(struct ctf_scanner *scanner)
{
struct ctf_scanner_scope *ns;
{
struct ctf_scanner_scope *ns;
- printf_dbg
_noarg
("push scope\n");
+ printf_dbg("push scope\n");
ns = malloc(sizeof(struct ctf_scanner_scope));
init_scope(ns, scanner->cs);
scanner->cs = ns;
ns = malloc(sizeof(struct ctf_scanner_scope));
init_scope(ns, scanner->cs);
scanner->cs = ns;
@@
-97,7
+96,7
@@
static void pop_scope(struct ctf_scanner *scanner)
{
struct ctf_scanner_scope *os;
{
struct ctf_scanner_scope *os;
- printf_dbg
_noarg
("pop scope\n");
+ printf_dbg("pop scope\n");
os = scanner->cs;
scanner->cs = os->parent;
finalize_scope(os);
os = scanner->cs;
scanner->cs = os->parent;
finalize_scope(os);
This page took
0.024133 seconds
and
4
git commands to generate.