hal/hald logger.h,1.7,1.8

David Zeuthen david at freedesktop.org
Thu Aug 26 15:16:19 PDT 2004


Update of /cvs/hal/hal/hald
In directory gabe:/tmp/cvs-serv15305/hald

Modified Files:
	logger.h 
Log Message:
2004-08-27  David Zeuthen  <david at fubar.dk>

	* AUTHORS: Add Kay Sievers <kay.sievers at vrfy.org> cause he rocks.
	Sort the list in alphabetical order of surname (I'm just soo
	political correct :-)

	* fdi/20freedesktop/canon-digital-ixus-v.fdi: Merge onto usb_device
	since we really don't know what interface to target

	* hald/linux/hald_helper.h: Change comment about seqnum

	* hald/linux/libsysfs/sysfs_dir.c (sysfs_open_link): Patch from
	Steve Grubb <linux4_ever at yahoo.com> to fix leak on error condition.

	* hald/linux/osspec.c: 
	(add_computer_callouts_done): Move from TDL to GDL
	(osspec_probe): Add to TDL; callouts may need it (seen by Kristof
	Vansant <de_lupus at pandora.be>
	(hald_helper_device_node): Print out seqnum
	(hald_helper_data): Pass seqnum

	* hald/logger.h: Ignore ENABLE_VERBOSE_MODE; always compile all
	logging statements in (should take the heat of some bugreports)

	* tools/linux/hal_dev.c (main): Pass seqnum if available; otherwise
	pass -1.



Index: logger.h
===================================================================
RCS file: /cvs/hal/hal/hald/logger.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- logger.h	22 Aug 2004 19:27:22 -0000	1.7
+++ logger.h	26 Aug 2004 22:16:17 -0000	1.8
@@ -55,10 +55,6 @@
 void logger_enable (void);
 void logger_disable (void);
 
-#ifdef ENABLE_VERBOSE_MODE
-
-/* Verbose mode */
-
 /** Trace logging macro */
 #define HAL_TRACE(expr)   do {logger_setup(HAL_LOGPRI_TRACE,   __FILE__, __LINE__, __FUNCTION__); logger_emit expr; } while(0)
 
@@ -77,23 +73,6 @@
 /** Macro for terminating the program on an unrecoverable error */
 #define DIE(expr) do {printf("*** [DIE] %s:%s():%d : ", __FILE__, __FUNCTION__, __LINE__); printf expr; printf("\n"); exit(1); } while(0)
 
-#else
-
-/* If verbose mode is not requested only handle warning and error */
-
-#define HAL_TRACE(expr) do {;} while(0)
-#define HAL_DEBUG(expr) do {;} while(0)
-#define HAL_INFO(expr) do {;} while(0)
-
-#define HAL_WARNING(expr) do {logger_setup(HAL_LOGPRI_WARNING, __FILE__, __LINE__, __FUNCTION__); logger_emit expr; } while(0)
-
-#define HAL_ERROR(expr)   do {logger_setup(HAL_LOGPRI_ERROR,   __FILE__, __LINE__, __FUNCTION__); logger_emit expr; } while(0)
-
-#define DIE(expr) do {printf("*** [DIE] %s:%s():%d : ", __FILE__, __FUNCTION__, __LINE__); printf expr; printf("\n"); exit(1); } while(0)
-
-
-#endif				/* ENABLE_VERBOSE_MODE */
-
 /** @} */
 
 #endif				/* LOGGER_H */




More information about the hal-commit mailing list