diff --git a/xen/common/livepatch.c b/xen/common/livepatch.c index c9dd51a6ea..0c564c2cdb 100644 --- a/xen/common/livepatch.c +++ b/xen/common/livepatch.c @@ -1547,12 +1547,6 @@ static void livepatch_printall(unsigned char key) static int __init livepatch_init(void) { - const void *binary_id; - unsigned int len; - - if ( !xen_build_id(&binary_id, &len) ) - printk(XENLOG_INFO LIVEPATCH ": build-id: %*phN\n", len, binary_id); - register_keyhandler('x', livepatch_printall, "print livepatch info", 1); arch_livepatch_init(); diff --git a/xen/common/version.c b/xen/common/version.c index 4375ea2bd7..0d31e38e9a 100644 --- a/xen/common/version.c +++ b/xen/common/version.c @@ -186,6 +186,8 @@ static int __init xen_build_init(void) } } #endif + if ( !rc ) + printk(XENLOG_INFO "build-id: %*phN\n", build_id_len, build_id_p); return rc; }