cee25393d8
- Fix P15-8-init-cycle-detection.patch: replace visiting+error with seen+silent-skip to eliminate 11 false-positive 'dependency cycle detected' errors on shared deps - Fix P0-daemon-fix-init-notify-unwrap.patch: remove eprintln! for missing INIT_NOTIFY (expected for oneshot_async services, ~7 daemons affected) - Fix driver-manager hotplug loop: add PERMANENTLY_SKIPPED static set shared between hotplug handler and DriverConfig::probe() to stop infinite re-probing of Fatal/NotSupported/deferred-exhausted device+driver pairs (e.g. ided) - Fix driver-manager log_timeline: suppress repeated EPIPE/ENOENT errors with AtomicI32 dedup and AtomicBool one-shot guards for boot timeline JSON - Add driver-manager SIGTERM handler, ACPI bus registration, --status mode, driver reap loop, graceful shutdown, and reduced deferred retries (30→3)
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/** \file logging.h
|
|
* \brief Header: provides a log file to ease tracing the program
|
|
*/
|
|
|
|
#ifndef MC_LOGGING_H
|
|
#define MC_LOGGING_H
|
|
|
|
/*
|
|
This file provides an easy-to-use function for writing all kinds of
|
|
events into a central log file that can be used for debugging.
|
|
*/
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
#define mc_log_mark() mc_log("%s:%d\n",__FILE__,__LINE__)
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
/* *INDENT-OFF* */
|
|
void mc_log (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
|
|
void mc_always_log (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
|
|
/* *INDENT-ON* */
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
#endif
|