patches and low-level development discussion
 help / color / mirror / code / Atom feed
706d42f217e2104e1475da5937c143003896e64a blob 892 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
28
29
30
31
32
 
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: 2020-2021 Alyssa Ross <hi@alyssa.is>

#include <stdarg.h>

enum verbosity {
	nothing,
	errors,
	all,
};

extern enum verbosity verbosity;

// Functions with an `e' suffix additionally print strerrno(errno).

// If opt is a character that matches a standard UCSPI command line
// verbosity option, sets the verbosity appropriately and returns
// true.  Otherwise, returns false.
_Bool set_verbosity(int opt);

// Log an error message then exit with status eval.
_Noreturn void die(int eval, const char *fmt, ...);
_Noreturn void diee(int eval, const char *fmt, ...);

// Log an error message.
void elog(const char *fmt, ...);
void velog(const char *fmt, va_list args);
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 706d42f ...
found 706d42f 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).