memfd: add error argument, instead of perror()
commit0f2956f9159e4aecc9f4de6b8412a1d1ac5a2da0
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 1 Feb 2018 13:27:51 +0000 (1 14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Feb 2018 13:09:25 +0000 (7 14:09 +0100)
tree5cb46f39c19420270af764f8ce0af9c0b02b55ae
parentdbadee4ff4a02d4b4cc138dd63b769b1d9391896
memfd: add error argument, instead of perror()

This will allow callers to silence error report when the call is
allowed to failed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180201132757.23063-2-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/vhost.c
include/qemu/memfd.h
util/memfd.c