From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] tools/xen-detect: try sysfs node for obtaining guest type Date: Wed, 21 Jun 2017 16:24:33 +0200 Message-ID: <20170621142433.GA25439@aepfle.de> References: <20170615095827.15265-1-jgross@suse.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1365963106985296374==" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNgYr-0007iW-F3 for xen-devel@lists.xenproject.org; Wed, 21 Jun 2017 14:24:49 +0000 In-Reply-To: <20170615095827.15265-1-jgross@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Juergen Gross Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org --===============1365963106985296374== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline --jI8keyz6grp/JLjh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Thu, Jun 15, Juergen Gross wrote: > +++ b/tools/misc/xen-detect.c > + asprintf(&ver, "V%u.%u", > + (uint16_t)(regs[0] >> 16), (uint16_t)regs[0]); > + asprintf(&ver, "V%s.%s", str, tmp); This fails to build: xen-detect.c:196:17: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Werror=unused-result] xen-detect.c:93:17: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Werror=unused-result] Olaf --jI8keyz6grp/JLjh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSkRyP6Rn//f03pRUBdQqD6ppg2fgUCWUqBmwAKCRBdQqD6ppg2 fhP1AKCIF7bA/OwqKckRS71uvwguPOGw9wCfbBKSd7YfuaCdOAtNrKtsPtGZ2s0= =ATNq -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- --===============1365963106985296374== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============1365963106985296374==--