zfs_debug.h revision 3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The contents of this file are subject to the terms of the
6b4acc8bd9d480535a4d057e291dc7c049f664d9ahrens * Common Development and Distribution License (the "License").
6b4acc8bd9d480535a4d057e291dc7c049f664d9ahrens * You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens * information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER END
3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5Lin Ling * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrensextern "C" {
fa9e4066f08beec538e775443c5be79dd423fcabahrens * ZFS debugging
fa9e4066f08beec538e775443c5be79dd423fcabahrensextern void __dprintf(const char *file, const char *func,
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define dprintf(...) \
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define dprintf(...) ((void)0)
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif /* ZFS_DEBUG */
3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5Lin Lingtypedef struct zfs_dbgmsg {
3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5Lin Lingextern void zfs_dbgmsg_init(void);
3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5Lin Lingextern void zfs_dbgmsg_fini(void);
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif /* _SYS_ZFS_DEBUG_H */