Index: util/win/ntstatus_logging.h |
diff --git a/util/win/ntstatus_logging.h b/util/win/ntstatus_logging.h |
index f52fa1bd8de3b6560640998a059d46a36d78ddbd..0dc24601df2f98d4eac8e7719b00abe21eec8a86 100644 |
--- a/util/win/ntstatus_logging.h |
+++ b/util/win/ntstatus_logging.h |
@@ -24,11 +24,14 @@ namespace logging { |
class NtstatusLogMessage : public logging::LogMessage { |
public: |
- NtstatusLogMessage(const char* function, |
- const char* file_path, |
- int line, |
- LogSeverity severity, |
- DWORD ntstatus); |
+ NtstatusLogMessage( |
+#if defined(MINI_CHROMIUM_BASE_LOGGING_H_) |
+ const char* function, |
+#endif |
+ const char* file_path, |
+ int line, |
+ LogSeverity severity, |
+ DWORD ntstatus); |
~NtstatusLogMessage(); |
private: |
@@ -41,11 +44,22 @@ class NtstatusLogMessage : public logging::LogMessage { |
#define NTSTATUS_LOG_STREAM(severity, ntstatus) \ |
COMPACT_GOOGLE_LOG_EX_##severity(NtstatusLogMessage, ntstatus).stream() |
+ |
+#if defined(MINI_CHROMIUM_BASE_LOGGING_H_) |
+ |
#define NTSTATUS_VLOG_STREAM(verbose_level, ntstatus) \ |
logging::NtstatusLogMessage( \ |
__PRETTY_FUNCTION__, __FILE__, __LINE__, -verbose_level, ntstatus) \ |
.stream() |
+#else |
+ |
+#define NTSTATUS_VLOG_STREAM(verbose_level, ntstatus) \ |
+ logging::NtstatusLogMessage(__FILE__, __LINE__, -verbose_level, ntstatus) \ |
+ .stream() |
+ |
+#endif // MINI_CHROMIUM_BASE_LOGGING_H_ |
+ |
#define NTSTATUS_LOG(severity, ntstatus) \ |
LAZY_STREAM(NTSTATUS_LOG_STREAM(severity, ntstatus), LOG_IS_ON(severity)) |
#define NTSTATUS_LOG_IF(severity, condition, ntstatus) \ |