86 lines
2.5 KiB
C
86 lines
2.5 KiB
C
/****************************************************************************
|
|
|
|
|
| (C) Copyright 1995-1998 Novell, Inc.
|
|
| All Rights Reserved.
|
|
|
|
|
| This program is free software; you can redistribute it and/or
|
|
| modify it under the terms of version 2 of the GNU General Public
|
|
| License as published by the Free Software Foundation.
|
|
|
|
|
| This program is distributed in the hope that it will be useful,
|
|
| but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| GNU General Public License for more details.
|
|
|
|
|
| You should have received a copy of the GNU General Public License
|
|
| along with this program; if not, contact Novell, Inc.
|
|
|
|
|
| To contact Novell about this file by physical or electronic mail,
|
|
| you may find current contact information at www.novell.com
|
|
|
|
|
|***************************************************************************
|
|
|
|
|
| NetWare Advance File Services (PSS) Initialization module
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
|
|
|
| $Author: taysom $
|
|
| $Date: 2006-12-20 02:34:42 +0530 (Wed, 20 Dec 2006) $
|
|
|
|
|
| $RCSfile$
|
|
| $Revision: 1780 $
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
| This module is used to:
|
|
| Debug code that is OS neutral
|
|
+-------------------------------------------------------------------------*/
|
|
|
|
#ifndef _NSSDEBUG_H_
|
|
#define _NSSDEBUG_H_
|
|
|
|
#ifndef _ZWHERE_H_
|
|
#include <zWhere.h>
|
|
#endif
|
|
|
|
/*
|
|
* I want to be able to use this include file in the linux source. So we
|
|
* have to be careful about including zOmni.h.
|
|
*/
|
|
#if zNETWARE
|
|
#ifndef _ZOMNI_H_
|
|
#include <zOmni.h>
|
|
#endif
|
|
#endif
|
|
|
|
#if zLINUX
|
|
#ifndef _QUAD_T
|
|
typedef unsigned long long QUAD;
|
|
#endif
|
|
#endif
|
|
|
|
extern int DebugIsOn;
|
|
extern int DebugFilter;
|
|
extern int DebugShowOnly;
|
|
extern int DebugDelay; /* milliseconds */
|
|
|
|
extern void prdelay(int);
|
|
extern int pr(const char *);
|
|
extern int prd(const char *, int);
|
|
extern int prp(const char *, const void *);
|
|
extern int prq(const char *, QUAD);
|
|
extern int prs(const char *, const char *);
|
|
extern int pru(const char *, unsigned int);
|
|
extern int prx(const char *, unsigned int);
|
|
extern int prmem(const char *, const void *, unsigned int);
|
|
|
|
#define HERE pr(WHERE)
|
|
#define PR(_s_) pr(WHERE # _s_)
|
|
#define PRd(_x_) prd(WHERE # _x_, _x_)
|
|
#define PRp(_x_) prp(WHERE # _x_, (void *)_x_)
|
|
#define PRq(_x_) prq(WHERE # _x_, _x_)
|
|
#define PRs(_x_) prs(WHERE # _x_, _x_)
|
|
#define PRu(_x_) pru(WHERE # _x_, _x_)
|
|
#define PRx(_x_) prx(WHERE # _x_, _x_)
|
|
|
|
#endif
|