Compile in the DPRINTF debug macro's on DEBUG kernels

This commit is contained in:
reinoud 2020-03-21 13:38:29 +00:00
parent ab309cd331
commit c0e3afd8a3

View File

@ -1,4 +1,4 @@
/* $NetBSD: nilfs.h,v 1.5 2014/10/15 09:05:46 hannken Exp $ */ /* $NetBSD: nilfs.h,v 1.6 2020/03/21 13:38:29 reinoud Exp $ */
/* /*
* Copyright (c) 2008, 2009 Reinoud Zandijk * Copyright (c) 2008, 2009 Reinoud Zandijk
@ -66,7 +66,7 @@ extern int nilfs_verbose;
/* initial value of nilfs_verbose */ /* initial value of nilfs_verbose */
#define NILFS_DEBUGGING 0 #define NILFS_DEBUGGING 0
#ifdef NILFS_DEBUG #ifdef DEBUG
#define DPRINTF(name, arg) { \ #define DPRINTF(name, arg) { \
if (nilfs_verbose & NILFS_DEBUG_##name) {\ if (nilfs_verbose & NILFS_DEBUG_##name) {\
printf arg;\ printf arg;\