From 78f4e5a0f728e24aaad0630f878d12ff72b6af9d Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 21 Feb 2024 13:21:56 +0000 Subject: [PATCH] Make DPRINTF() depend on DEBUG and add the missing ; OK mpi@ --- usr.bin/ctfconv/parse.c | 8 ++++++-- 1 file 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. */ -- 2.20.1