[prev in list] [next in list] [prev in thread] [next in thread]
List: klik-devel
Subject: [klik-devel] [klikclient commit] r1653 -
From: codesite-noreply () google ! com
Date: 2008-08-22 11:12:26
Message-ID: 001636417a8535687504550a8371 () google ! com
[Download RAW message or body]
Author: cristian.debian
Date: Fri Aug 22 04:12:17 2008
New Revision: 1653
Modified:
branches/cristian/fusioniso/fusioniso/src/debug.h
Log:
better FSWARNING output
Modified: branches/cristian/fusioniso/fusioniso/src/debug.h
==============================================================================
--- branches/cristian/fusioniso/fusioniso/src/debug.h (original)
+++ branches/cristian/fusioniso/fusioniso/src/debug.h Fri Aug 22 04:12:17
2008
@@ -36,6 +36,8 @@
#ifdef _DEBUG
+/* for logging purposes (internal functions),
+ * print to stderr or to file */
#define FSDEBUG(...) \
do { \
fprintf(OUTFILE,"[%d] %s:%d %s(): ",getpid(),__FILE__,__LINE__,__func__); \
@@ -43,9 +45,11 @@
fprintf(OUTFILE,"\n"); \
} while (0);
+/* for warning or error messages (you may want to exit()
+ * after calling this macro), print only to stderr */
#define FSWARNING(...) \
do { \
- fprintf(stderr,"%s: ",PACKAGE_NAME); \
+ fprintf(stderr,"%s %s(): ",PACKAGE_NAME,__func__); \
fprintf(stderr,__VA_ARGS__); \
fprintf(stderr,"\n"); \
} while (0);
_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic