diff options
Diffstat (limited to 'rust/kernel/std_vendor.rs')
| -rw-r--r-- | rust/kernel/std_vendor.rs | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/rust/kernel/std_vendor.rs b/rust/kernel/std_vendor.rs index 388d6a5147a2..39679a960c1a 100644 --- a/rust/kernel/std_vendor.rs +++ b/rust/kernel/std_vendor.rs @@ -146,15 +146,16 @@ macro_rules! dbg {      // `$val` expression could be a block (`{ .. }`), in which case the `pr_info!`      // will be malformed.      () => { -        $crate::pr_info!("[{}:{}]\n", ::core::file!(), ::core::line!()) +        $crate::pr_info!("[{}:{}:{}]\n", ::core::file!(), ::core::line!(), ::core::column!())      };      ($val:expr $(,)?) => {          // Use of `match` here is intentional because it affects the lifetimes          // of temporaries - https://stackoverflow.com/a/48732525/1063961          match $val {              tmp => { -                $crate::pr_info!("[{}:{}] {} = {:#?}\n", -                    ::core::file!(), ::core::line!(), ::core::stringify!($val), &tmp); +                $crate::pr_info!("[{}:{}:{}] {} = {:#?}\n", +                    ::core::file!(), ::core::line!(), ::core::column!(), +                    ::core::stringify!($val), &tmp);                  tmp              }          } |