added more error debugging

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@355 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-11-11 09:51:48 +00:00
parent a012c02caf
commit c0f16a32a3
4 changed files with 40 additions and 27 deletions

View File

@@ -51,8 +51,10 @@ extern struct rf_driver driver_libnfc;
{if (verbose >= LEVEL_INFO) \
printf (__VA_ARGS__);}
#define ERROR(...) \
{if (verbose >= 0) \
fprintf (stderr, __VA_ARGS__);}
{ \
if (verbose >= LEVEL_DEBUG) fprintf (stderr, "%s:%u\t", __FILE__, __LINE__); \
if (verbose >= 0) fprintf (stderr, __VA_ARGS__); \
}
#ifdef __cplusplus