xen-detect: handle asprintf error
authorWei Liu <wei.liu2@citrix.com>
Wed, 21 Jun 2017 14:41:52 +0000 (15:41 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 23 Jun 2017 15:08:40 +0000 (16:08 +0100)
commit7f919ac31993e95387cac612d0dc0bf0ac7cccce
tree4551b90fb412ee7c63dfbb060b2f9b1ace60c4d8
parent0034cd90653c6af145b185234bf3633afb41fc20
xen-detect: handle asprintf error

Otherwise gcc with -Wunused will complain the return value is not
used.

Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/misc/xen-detect.c