Commit 9085474e authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Fix error/warning/info message macros that use format strings

parent 7eb84290
......@@ -520,8 +520,8 @@ macro_rules! gst_element_error(
$obj.message_full(
$crate::ElementMessageType::Error,
$err,
Some(format!($($msg)*)),
Some(format!($($debug)*)),
Some(&format!($($msg)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -532,7 +532,7 @@ macro_rules! gst_element_error(
$obj.message_full(
$crate::ElementMessageType::Error,
$err,
Some(format!($($msg)*)),
Some(&format!($($msg)*)),
None,
file!(),
module_path!(),
......@@ -545,7 +545,7 @@ macro_rules! gst_element_error(
$crate::ElementMessageType::Error,
$err,
None,
Some(format!($($debug)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -596,8 +596,8 @@ macro_rules! gst_element_error(
$obj.message_full_with_details(
$crate::ElementMessageType::Error,
$err,
Some(format!($($msg)*)),
Some(format!($($debug)*)),
Some(&format!($($msg)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -609,7 +609,7 @@ macro_rules! gst_element_error(
$obj.message_full_with_details(
$crate::ElementMessageType::Error,
$err,
Some(format!($($msg)*)),
Some(&format!($($msg)*)),
None,
file!(),
module_path!(),
......@@ -623,7 +623,7 @@ macro_rules! gst_element_error(
$crate::ElementMessageType::Error,
$err,
None,
Some(format!($($debug)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -675,8 +675,8 @@ macro_rules! gst_element_warning(
$obj.message_full(
$crate::ElementMessageType::Warning,
$err,
Some(format!($($msg)*)),
Some(format!($($debug)*)),
Some(&format!($($msg)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -687,7 +687,7 @@ macro_rules! gst_element_warning(
$obj.message_full(
$crate::ElementMessageType::Warning,
$err,
Some(format!($($msg)*)),
Some(&format!($($msg)*)),
None,
file!(),
module_path!(),
......@@ -700,7 +700,7 @@ macro_rules! gst_element_warning(
$crate::ElementMessageType::Warning,
$err,
None,
Some(format!($($debug)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -751,8 +751,8 @@ macro_rules! gst_element_warning(
$obj.message_full_with_details(
$crate::ElementMessageType::Warning,
$err,
Some(format!($($msg)*)),
Some(format!($($debug)*)),
Some(&format!($($msg)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -764,7 +764,7 @@ macro_rules! gst_element_warning(
$obj.message_full_with_details(
$crate::ElementMessageType::Warning,
$err,
Some(format!($($msg)*)),
Some(&format!($($msg)*)),
None,
file!(),
module_path!(),
......@@ -778,7 +778,7 @@ macro_rules! gst_element_warning(
$crate::ElementMessageType::Warning,
$err,
None,
Some(format!($($debug)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -830,8 +830,8 @@ macro_rules! gst_element_info(
$obj.message_full(
$crate::ElementMessageType::Info,
$err,
Some(format!($($msg)*)),
Some(format!($($debug)*)),
Some(&format!($($msg)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -842,7 +842,7 @@ macro_rules! gst_element_info(
$obj.message_full(
$crate::ElementMessageType::Info,
$err,
Some(format!($($msg)*)),
Some(&format!($($msg)*)),
None,
file!(),
module_path!(),
......@@ -855,7 +855,7 @@ macro_rules! gst_element_info(
$crate::ElementMessageType::Info,
$err,
None,
Some(format!($($debug)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -906,8 +906,8 @@ macro_rules! gst_element_info(
$obj.message_full_with_details(
$crate::ElementMessageType::Info,
$err,
Some(format!($($msg)*)),
Some(format!($($debug)*)),
Some(&format!($($msg)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......@@ -919,7 +919,7 @@ macro_rules! gst_element_info(
$obj.message_full_with_details(
$crate::ElementMessageType::Info,
$err,
Some(format!($($msg)*)),
Some(&format!($($msg)*)),
None,
file!(),
module_path!(),
......@@ -933,7 +933,7 @@ macro_rules! gst_element_info(
$crate::ElementMessageType::Info,
$err,
None,
Some(format!($($debug)*)),
Some(&format!($($debug)*)),
file!(),
module_path!(),
line!(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment