dpkg 1.21.11
Data Structures | Functions | Variables
log.c File Reference

(c1b0eeed6)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <time.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdarg.h>
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/fdio.h>
Include dependency graph for log.c:

Data Structures

struct  pipef
 

Functions

void log_message (const char *fmt,...)
 
void statusfd_add (int fd)
 
void statusfd_send (const char *fmt,...)
 

Variables

const char * log_file = NULL
 

Function Documentation

◆ log_message()

void log_message ( const char *  fmt,
  ... 
)

References _, args, varbuf::buf, fd_write(), log_file, notice(), setcloexec(), varbuf::used, varbuf_add_char(), varbuf_add_str, varbuf_end_str(), varbuf_reset(), and varbuf_vprintf().

Referenced by archivefiles(), log_action(), modstatdb_note(), and packages().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ statusfd_add()

void statusfd_add ( int  fd)

References _, pipef::fd, pipef::next, nfmalloc(), and setcloexec().

Here is the call graph for this function:

◆ statusfd_send()

void statusfd_send ( const char *  fmt,
  ... 
)

References args.

Referenced by log_action(), modstatdb_note(), print_error_perarchive(), and print_error_perpackage().

Here is the caller graph for this function:

Variable Documentation

◆ log_file

const char* log_file = NULL

Referenced by log_message().