What am I doing wrong with this macro
- From: John <jvasquez@xxxxxxxxxxxx>
- Date: Tue, 29 Jan 2008 10:09:31 -0800
I have a macro defined as:
#ifdef DEBUG
#define DEBUG_PRINT(level, format, a...) \
if ((level) & debug_level) cmn_err(CE_NOTE,"%s: " format, ##a)
#else
#define DEBUG_PRINT(level, format, a...)
#endif
In the code, I'll do this
DEBUG_PRINT(DEBUG_READ,"This is an Error Message\n");
When I compile, I'm getting the error message,"warning: argument
mismatch".
I copied the code from from of our programs written in linux and
replace the cmn_err statement to match Solaris.
What am I doing wrong?
.
- Follow-Ups:
- Re: What am I doing wrong with this macro
- From: Ian Collins
- Re: What am I doing wrong with this macro
- From: Andrew Gabriel
- Re: What am I doing wrong with this macro
- Prev by Date: Re: Mounting USB device on Solaris 9 (X86)
- Next by Date: How to I mount a shared directory on an XP platform using SAMBA
- Previous by thread: Solaris 10 8/07, Samba (winbind) and sudo
- Next by thread: Re: What am I doing wrong with this macro
- Index(es):
Relevant Pages
|
|