kernel_platform/common (Android common kernel, android16-6.12) from opendevices.sony.net, "Open source archive for 73.1.A.2.74" (Xperia 1 VIII), unmodified. This is the kernel Sony ships, so stock-built modules (e.g. the WLAN driver, whose source is not in the archive) match it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
30 lines
593 B
C
30 lines
593 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include "debug.h"
|
|
#include "debug-internal.h"
|
|
|
|
static int __base_pr(const char *format, ...)
|
|
{
|
|
va_list args;
|
|
int err;
|
|
|
|
va_start(args, format);
|
|
err = vfprintf(stderr, format, args);
|
|
va_end(args);
|
|
return err;
|
|
}
|
|
|
|
libapi_print_fn_t __pr_warn = __base_pr;
|
|
libapi_print_fn_t __pr_info = __base_pr;
|
|
libapi_print_fn_t __pr_debug;
|
|
|
|
void libapi_set_print(libapi_print_fn_t warn,
|
|
libapi_print_fn_t info,
|
|
libapi_print_fn_t debug)
|
|
{
|
|
__pr_warn = warn;
|
|
__pr_info = info;
|
|
__pr_debug = debug;
|
|
}
|