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( $obj.message_full(
$crate::ElementMessageType::Error, $crate::ElementMessageType::Error,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -532,7 +532,7 @@ macro_rules! gst_element_error(
$obj.message_full( $obj.message_full(
$crate::ElementMessageType::Error, $crate::ElementMessageType::Error,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
None, None,
file!(), file!(),
module_path!(), module_path!(),
@ -545,7 +545,7 @@ macro_rules! gst_element_error(
$crate::ElementMessageType::Error, $crate::ElementMessageType::Error,
$err, $err,
None, None,
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -596,8 +596,8 @@ macro_rules! gst_element_error(
$obj.message_full_with_details( $obj.message_full_with_details(
$crate::ElementMessageType::Error, $crate::ElementMessageType::Error,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -609,7 +609,7 @@ macro_rules! gst_element_error(
$obj.message_full_with_details( $obj.message_full_with_details(
$crate::ElementMessageType::Error, $crate::ElementMessageType::Error,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
None, None,
file!(), file!(),
module_path!(), module_path!(),
@ -623,7 +623,7 @@ macro_rules! gst_element_error(
$crate::ElementMessageType::Error, $crate::ElementMessageType::Error,
$err, $err,
None, None,
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -675,8 +675,8 @@ macro_rules! gst_element_warning(
$obj.message_full( $obj.message_full(
$crate::ElementMessageType::Warning, $crate::ElementMessageType::Warning,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -687,7 +687,7 @@ macro_rules! gst_element_warning(
$obj.message_full( $obj.message_full(
$crate::ElementMessageType::Warning, $crate::ElementMessageType::Warning,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
None, None,
file!(), file!(),
module_path!(), module_path!(),
@ -700,7 +700,7 @@ macro_rules! gst_element_warning(
$crate::ElementMessageType::Warning, $crate::ElementMessageType::Warning,
$err, $err,
None, None,
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -751,8 +751,8 @@ macro_rules! gst_element_warning(
$obj.message_full_with_details( $obj.message_full_with_details(
$crate::ElementMessageType::Warning, $crate::ElementMessageType::Warning,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -764,7 +764,7 @@ macro_rules! gst_element_warning(
$obj.message_full_with_details( $obj.message_full_with_details(
$crate::ElementMessageType::Warning, $crate::ElementMessageType::Warning,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
None, None,
file!(), file!(),
module_path!(), module_path!(),
@ -778,7 +778,7 @@ macro_rules! gst_element_warning(
$crate::ElementMessageType::Warning, $crate::ElementMessageType::Warning,
$err, $err,
None, None,
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -830,8 +830,8 @@ macro_rules! gst_element_info(
$obj.message_full( $obj.message_full(
$crate::ElementMessageType::Info, $crate::ElementMessageType::Info,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -842,7 +842,7 @@ macro_rules! gst_element_info(
$obj.message_full( $obj.message_full(
$crate::ElementMessageType::Info, $crate::ElementMessageType::Info,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
None, None,
file!(), file!(),
module_path!(), module_path!(),
@ -855,7 +855,7 @@ macro_rules! gst_element_info(
$crate::ElementMessageType::Info, $crate::ElementMessageType::Info,
$err, $err,
None, None,
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -906,8 +906,8 @@ macro_rules! gst_element_info(
$obj.message_full_with_details( $obj.message_full_with_details(
$crate::ElementMessageType::Info, $crate::ElementMessageType::Info,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),
@ -919,7 +919,7 @@ macro_rules! gst_element_info(
$obj.message_full_with_details( $obj.message_full_with_details(
$crate::ElementMessageType::Info, $crate::ElementMessageType::Info,
$err, $err,
Some(format!($($msg)*)), Some(&format!($($msg)*)),
None, None,
file!(), file!(),
module_path!(), module_path!(),
@ -933,7 +933,7 @@ macro_rules! gst_element_info(
$crate::ElementMessageType::Info, $crate::ElementMessageType::Info,
$err, $err,
None, None,
Some(format!($($debug)*)), Some(&format!($($debug)*)),
file!(), file!(),
module_path!(), module_path!(),
line!(), line!(),