rusticl/program: print compiler output as Rust string

The CString Debug implementation does not handle new lines, so it gets all
printed as a single row, which is not what we want at all.

Fixes: 01de0ff26f ("rusticl/program: store log as a CString")
Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42021>
This commit is contained in:
Karol Herbst 2026-06-04 20:13:09 +02:00 committed by Marge Bot
parent 8150ce8531
commit 890a51c207

View file

@ -973,7 +973,7 @@ fn debug_logging(p: &Program, devs: &[&Device]) {
for dev in devs {
let msg = p.log(dev);
if !msg.is_empty() {
eprintln!("{msg:?}");
eprintln!("{}", msg.to_string_lossy());
}
}
}