uefi: Log the efivar library version too into the report

This commit is contained in:
Mario Limonciello 2018-02-13 13:42:13 -05:00 committed by Richard Hughes
parent b27639ae9f
commit a076c81a07
3 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,7 @@ if get_option('plugin_uefi')
conf.set('HAVE_FWUP_GET_BGRT_INFO', '1') conf.set('HAVE_FWUP_GET_BGRT_INFO', '1')
endif endif
efivar = dependency('efivar') efivar = dependency('efivar')
conf.set_quoted('EFIVAR_LIBRARY_VERSION', efivar.version())
conf.set_quoted('LIBFWUP_LIBRARY_VERSION', fwup.version()) conf.set_quoted('LIBFWUP_LIBRARY_VERSION', fwup.version())
endif endif

View File

@ -39,6 +39,7 @@ fu_plugin_init (FuPlugin *plugin)
{ {
fu_plugin_add_rule (plugin, FU_PLUGIN_RULE_RUN_AFTER, "upower"); fu_plugin_add_rule (plugin, FU_PLUGIN_RULE_RUN_AFTER, "upower");
fu_plugin_add_report_metadata (plugin, "FwupdateVersion", LIBFWUP_LIBRARY_VERSION); fu_plugin_add_report_metadata (plugin, "FwupdateVersion", LIBFWUP_LIBRARY_VERSION);
fu_plugin_add_report_metadata (plugin, "EfivarVersion", EFIVAR_LIBRARY_VERSION);
} }
static gchar * static gchar *

View File

@ -2365,6 +2365,10 @@ main (int argc, char *argv[])
#ifdef LIBFWUP_LIBRARY_VERSION #ifdef LIBFWUP_LIBRARY_VERSION
g_print ("\tfwupdate:\t%s\n", g_print ("\tfwupdate:\t%s\n",
LIBFWUP_LIBRARY_VERSION); LIBFWUP_LIBRARY_VERSION);
#endif
#ifdef EFIVAR_LIBRARY_VERSION
g_print ("\tefivar:\t%s\n",
EFIVAR_LIBRARY_VERSION);
#endif #endif
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }