patches and low-level development discussion
 help / color / mirror / code / Atom feed
a1b0c1661fc323dcac5b2c0a89999d1dfc0d6919 blob 669 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: 2020 Alyssa Ross <hi@alyssa.is>

#include <stdarg.h>

enum verbosity {
	nothing,
	errors,
	all,
};

extern enum verbosity verbosity;

// Log an error message, followed by strerrno(errno), then exit with
// status eval.
void diee(int eval, const char *fmt, ...) __attribute__((noreturn));

// Log an error message.
void elog(const char *fmt, ...);
void velog(const char *fmt, va_list args);

// Log an error message, followed by strerror(errno).
void veloge(const char *fmt, va_list args);

// Log an informative message.
void ilog(const char *fmt, ...);
void vilog(const char *fmt, va_list args);
debug log:

solving a1b0c16 ...
found a1b0c16 in https://spectrum-os.org/git/ucspi-vsock

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).