LCOV - code coverage report
Current view: top level - src/libs/elektra - nolog.c (source / functions) Hit Total Coverage
Test: coverage-filtered.info Lines: 0 10 0.0 %
Date: 2019-09-12 12:28:41 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /**
       2             :  * @file
       3             :  *
       4             :  * @brief C99-compatible Fake Logger Implementation
       5             :  *
       6             :  * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
       7             :  */
       8             : 
       9             : #include <kdblogger.h>
      10             : 
      11             : #include <stdarg.h>
      12             : #include <stdio.h>
      13             : #include <stdlib.h>
      14             : 
      15             : 
      16           0 : int elektraLog (int level ELEKTRA_UNUSED, const char * function ELEKTRA_UNUSED, const char * absFile ELEKTRA_UNUSED,
      17             :                 const int line ELEKTRA_UNUSED, const char * mmsg ELEKTRA_UNUSED, ...)
      18             : {
      19           0 :         return 0;
      20             : }
      21             : 
      22           0 : void elektraAbort (const char * expression, const char * function, const char * file, const int line, const char * msg, ...)
      23             : {
      24           0 :         fprintf (stderr, "%s:%d:%s: Assertion `%s' failed: ", file, line, function, expression);
      25             :         {
      26             :                 va_list args;
      27           0 :                 va_start (args, msg);
      28           0 :                 vfprintf (stderr, msg, args);
      29           0 :                 va_end (args);
      30             :         }
      31           0 :         fprintf (stderr, "\n");
      32           0 :         fflush (stderr);
      33           0 :         abort ();
      34             : }

Generated by: LCOV version 1.13