mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-11 10:27:13 +00:00
uefi: Log the efivar library version too into the report
This commit is contained in:
parent
b27639ae9f
commit
a076c81a07
@ -201,6 +201,7 @@ if get_option('plugin_uefi')
|
||||
conf.set('HAVE_FWUP_GET_BGRT_INFO', '1')
|
||||
endif
|
||||
efivar = dependency('efivar')
|
||||
conf.set_quoted('EFIVAR_LIBRARY_VERSION', efivar.version())
|
||||
conf.set_quoted('LIBFWUP_LIBRARY_VERSION', fwup.version())
|
||||
endif
|
||||
|
||||
|
@ -39,6 +39,7 @@ fu_plugin_init (FuPlugin *plugin)
|
||||
{
|
||||
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, "EfivarVersion", EFIVAR_LIBRARY_VERSION);
|
||||
}
|
||||
|
||||
static gchar *
|
||||
|
@ -2365,6 +2365,10 @@ main (int argc, char *argv[])
|
||||
#ifdef LIBFWUP_LIBRARY_VERSION
|
||||
g_print ("\tfwupdate:\t%s\n",
|
||||
LIBFWUP_LIBRARY_VERSION);
|
||||
#endif
|
||||
#ifdef EFIVAR_LIBRARY_VERSION
|
||||
g_print ("\tefivar:\t%s\n",
|
||||
EFIVAR_LIBRARY_VERSION);
|
||||
#endif
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user