breakpad_init初始化接口增加version
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -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);
|
||||
|
||||
2
vendor/CMakeLists.txt
vendored
2
vendor/CMakeLists.txt
vendored
@@ -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})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user