diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-02-21 13:21:57 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-02-21 13:21:57 +0000 |
commit | 1defd30d2fda57aa434f7fa236e16be9376cd504 (patch) | |
tree | 2b27333845f3ccc0848dd364d9165beecf908146 /usr.bin | |
parent | 6368e273bd8f638a2d539d16c252da320799c079 (diff) |
Make DPRINTF() depend on DEBUG and add the missing ;
OK mpi@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ctfconv/parse.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/ctfconv/parse.c b/usr.bin/ctfconv/parse.c index 108608f92b7..d66db52d290 100644 --- a/usr.bin/ctfconv/parse.c +++ b/usr.bin/ctfconv/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.17 2024/02/21 13:20:38 claudio Exp $ */ +/* $OpenBSD: parse.c,v 1.18 2024/02/21 13:21:56 claudio Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot @@ -50,7 +50,11 @@ struct pool it_pool, im_pool, ir_pool; #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) #endif -#define DPRINTF(x...) do { /*printf(x)*/ } while (0) +#ifdef DEBUG +#define DPRINTF(x...) do { printf(x); } while (0) +#else +#define DPRINTF(x...) do { ; } while (0) +#endif #define VOID_OFFSET 1 /* Fake offset for generating "void" type. */ |