On 05/12/2015 06:03 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster <arm...@redhat.com> > --- > net/tap-linux.c | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) >
> @@ -47,7 +46,7 @@ int tap_open(char *ifname, int ifname_size, int *vnet_hdr, > > TFR(fd = open(PATH_NET_TUN, O_RDWR)); > if (fd < 0) { > - error_report("could not open %s: %m", PATH_NET_TUN); > + error_setg_errno(errp, errno, "could not open %s", PATH_NET_TUN); Oh nice - gets rid of non-portable uses of %m (of course, the file is only compiled on Linux where %m is supported, so it is not a bug fix). Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature