[cr136] Fix print_rust_log override args using cxx now

This is a simple change to the function signature itself to once again
be matching with the one in the override. The type changes are pretty
much analogous to what was there before.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/7cbc0d17f2eceb8ef0eb928fe8f8dd6d0163d3d0

commit 7cbc0d17f2eceb8ef0eb928fe8f8dd6d0163d3d0
Author: Collin Baker <collinbaker@chromium.org>
Date:   Wed Mar 19 14:02:01 2025 -0700

    Use cxx for FFI between Rust and C++ logging code

    Instead of bindgen, use cxx to generate binding for the C++
    print_rust_log fn called from Rust. This will make it possible to use
    cxx types such as rust::Str.

    Bindgen is still used to generate LogSeverity bindings, since that is
    the only way to have non-opaque bindings while keeping C++ as the
    source of truth.

    Bug: 371112531
This commit is contained in:
Claudio DeSouza
2025-04-16 09:30:28 +01:00
parent b41d4ae2b9
commit c3209fb9b3
@@ -12,10 +12,10 @@
namespace logging {
namespace internal {
void print_rust_log(const char* msg,
void print_rust_log(const RustFmtArguments& msg,
const char* file,
int line,
LogSeverity severity,
int32_t line,
int32_t severity,
bool verbose) {
switch (severity) {
// Trace and debug logs are set as `LOGGING_INFO`. Trace is also set as