From 0530d9adbd1f99673153cff6765279c7b0521252 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 10 Jan 2023 05:21:26 +0000 Subject: [PATCH] fuck --- lightning/src/debug_sync.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lightning/src/debug_sync.rs b/lightning/src/debug_sync.rs index 3cb0f4612..13a3639e6 100644 --- a/lightning/src/debug_sync.rs +++ b/lightning/src/debug_sync.rs @@ -84,13 +84,15 @@ fn get_construction_location(backtrace: &Backtrace) -> String { let symbol_name = symbol.name().unwrap().as_str().unwrap(); if !sync_mutex_constr_regex.is_match(symbol_name) { if found_debug_sync { - if let Some(col) = symbol.colno() { - return format!("{}:{}:{} ({})", symbol.filename().unwrap().display(), symbol.lineno().unwrap(), col, symbol_name); + let res = if let Some(col) = symbol.colno() { + format!("{}:{}:{}", symbol.filename().unwrap().display(), symbol.lineno().unwrap(), col) } else { // Windows debug symbols don't support column numbers, so fall back to // line numbers only if no `colno` is available - return format!("{}:{} ({})", symbol.filename().unwrap().display(), symbol.lineno().unwrap(), symbol_name); - } + format!("{}:{}", symbol.filename().unwrap().display(), symbol.lineno().unwrap()) + }; +eprintln!("{}: {}", res, symbol_name); +return res; } } else { found_debug_sync = true; } } -- 2.39.5