I am trying to print the line numbers using __LINE__ in DbgPrint,
however it does not seem to be working.
I am using WDK 7600.16385.1 for x86 Windows7 build.
The statement
DbgPrint(( __LINE__ "\n" ));
results in compilation error
error C2143: syntax error : missing ')' before 'string'
warning C4047: 'function' : 'PCSTR' differs in levels of indirection
from 'int'
warning C4024: 'DbgPrint' : different types for formal and actual
parameter 1
while the statement
DbgPrint(( "%d \n", __LINE__ ));
gives the following compilation warnings (errors):
warning C4047: 'function' : 'PCSTR' differs in levels of indirection
from 'int'
warning C4047: 'function' : 'PCSTR' differs in levels of indirection
from 'int'
warning C4024: 'DbgPrint' : different types for formal and actual
parameter 1
warning C4024: 'DbgPrint' : different types for formal and actual
parameter 1
Can any one point me if there is any problem in my code (DbgPrint
statements).
I have not faced this problem with earlier versions of WDK/DDK on
Vista
Thanks,
Mark