From 81eef836b6e0e5e0fe0cb7f750f8162d901b0d3d Mon Sep 17 00:00:00 2001 From: fengweihao Date: Mon, 19 Oct 2020 16:24:45 +0800 Subject: [PATCH] =?UTF-8?q?breakpad=5Finit=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/syslogd/include/logging.h | 2 +- common/syslogd/src/logging.cpp | 4 ++-- program/src/cert_store.cpp | 6 +++--- vendor/CMakeLists.txt | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/common/syslogd/include/logging.h b/common/syslogd/include/logging.h index 8d3ac35..19f1dae 100644 --- a/common/syslogd/include/logging.h +++ b/common/syslogd/include/logging.h @@ -46,6 +46,6 @@ extern void mesa_logging_print(int log_level, const char *module, const char *ms #define mesa_runtime_log(level, module, ...) mesa_log(logging_sc_lid.debug_switch, level, module, __VA_ARGS__) -void cert_syslog_init(const char *config); +void cert_syslog_init(const char *config, const char * version); #endif diff --git a/common/syslogd/src/logging.cpp b/common/syslogd/src/logging.cpp index 751d239..19c5a92 100644 --- a/common/syslogd/src/logging.cpp +++ b/common/syslogd/src/logging.cpp @@ -31,7 +31,7 @@ void mesa_logging_print(int log_level, const char *module, const char *msg) return; } -void cert_syslog_init(const char *config) +void cert_syslog_init(const char *config, const char * version) { struct breakpad_instance *breakpad; @@ -56,7 +56,7 @@ void cert_syslog_init(const char *config) mesa_runtime_log(RLOG_LV_INFO, MODULE_NAME, "Log module initialization"); } - breakpad = breakpad_init(config, "breakpad", logging_sc_lid.run_log_handle); + breakpad = breakpad_init(config, "breakpad", logging_sc_lid.run_log_handle, version); if(breakpad == NULL) { mesa_runtime_log(RLOG_LV_FATAL, MODULE_NAME, "Failed at starting breakpad."); diff --git a/program/src/cert_store.cpp b/program/src/cert_store.cpp index 747a6a7..efc55a8 100644 --- a/program/src/cert_store.cpp +++ b/program/src/cert_store.cpp @@ -83,14 +83,14 @@ int main(int argc, char **argv) break; } } - cert_syslog_init(CERT_BASIC_CFG); + cert_syslog_init(CERT_BASIC_CFG, version()); cert_init_config(CERT_BASIC_CFG); cert_preview(); - + mesa_runtime_log(RLOG_LV_INFO, MODULE_NAME, "Cert server init success"); - + cert_session_init(); signal(SIGINT, sigproc); diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index ff63aff..b9fd592 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -152,7 +152,7 @@ set_property(TARGET MESA_field_stat PROPERTY IMPORTED_LOCATION ${MESA_FRAMEWORK_ set_property(TARGET MESA_field_stat PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${MESA_FRAMEWORK_INCLUDE_DIR}) add_library(breakpad_mini SHARED IMPORTED GLOBAL) -set_property(TARGET breakpad_mini PROPERTY IMPORTED_LOCATION ${MESA_FRAMEWORK_LIB_DIR}/lib/libbreakpad_mini.so) +set_property(TARGET breakpad_mini PROPERTY IMPORTED_LOCATION ${MESA_FRAMEWORK_LIB_DIR}/libbreakpad_mini.so) set_property(TARGET breakpad_mini PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${MESA_FRAMEWORK_INCLUDE_DIR})