Make RTC_LOG_FILE_LINE use its parameters
Our macros always pass __FILE__ and __LINE__ as parameters, so the impact was limited. However, doing the correct thing is obviously preferable to doing the wrong thing, so let's fix it. Bug: webrtc:10003 Change-Id: Id2529c4bd8c7e90a8f0ac3ffa713dbe305ba66d8 Reviewed-on: https://webrtc-review.googlesource.com/c/111244 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25712}
This commit is contained in:
@ -519,10 +519,10 @@ class LogMessage {
|
||||
? static_cast<void>(0) \
|
||||
: rtc::webrtc_logging_impl::LogMessageVoidify()&
|
||||
|
||||
#define RTC_LOG_FILE_LINE(sev, file, line) \
|
||||
rtc::webrtc_logging_impl::LogCall() & \
|
||||
rtc::webrtc_logging_impl::LogStreamer<>() \
|
||||
<< rtc::webrtc_logging_impl::LogMetadata(__FILE__, __LINE__, sev)
|
||||
#define RTC_LOG_FILE_LINE(sev, file, line) \
|
||||
rtc::webrtc_logging_impl::LogCall() & \
|
||||
rtc::webrtc_logging_impl::LogStreamer<>() \
|
||||
<< rtc::webrtc_logging_impl::LogMetadata(file, line, sev)
|
||||
|
||||
#define RTC_LOG(sev) RTC_LOG_FILE_LINE(rtc::sev, __FILE__, __LINE__)
|
||||
|
||||
|
Reference in New Issue
Block a user