MCPcopy Create free account
hub / github.com/GJDuck/e9patch / e9debug

Function e9debug

src/e9patch/e9loader_elf.cpp:133–145  ·  view source on GitHub ↗

* Write a debug message. */

Source from the content-addressed store, hash-verified

131 * Write a debug message.
132 */
133static NO_INLINE void e9debug(const char *msg, ...)
134{
135 char buf[BUFSIZ], *str = buf;
136 str = e9write_str(str, "e9patch loader debug: ");
137 va_list ap;
138 va_start(ap, msg);
139 str = e9write_format(str, msg, ap);
140 va_end(ap);
141 str = e9write_char(str, '\n');
142
143 size_t len = str - buf;
144 e9syscall(SYS_write, STDERR_FILENO, buf, len);
145}
146
147/*
148 * Default mmap() routine.

Callers 2

e9loaderFunction · 0.85
e9load_mapsFunction · 0.85

Calls 3

e9write_strFunction · 0.85
e9write_formatFunction · 0.85
e9write_charFunction · 0.85

Tested by

no test coverage detected