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

This commit is contained in:
Sebastian Dröge 2017-11-16 13:37:52 +02:00
parent 7eb8429046
commit 9085474e37

View file

@ -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!(),