From: Julien Grall Date: Mon, 13 Aug 2018 17:33:25 +0000 (+0100) Subject: libs/foreignmemory: Avoid printing an error for ENOTSUPP X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3470 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=80cdb33cb7a96c3355b35ec620f1798fe3be1048;p=xen.git libs/foreignmemory: Avoid printing an error for ENOTSUPP Resource mapping is not supported on Arm and results to an error message at every guest boot: xenforeignmemory: error: ioctl failed: Operation not supported Hide the error message when errnor is ENOTSUPP. Signed-off-by: Julien Grall Reviewed-by: Paul Durrant Acked-by: Wei Liu --- diff --git a/tools/libs/foreignmemory/linux.c b/tools/libs/foreignmemory/linux.c index a6b41b0b7f..3686cf41e0 100644 --- a/tools/libs/foreignmemory/linux.c +++ b/tools/libs/foreignmemory/linux.c @@ -307,7 +307,7 @@ int osdep_xenforeignmemory_map_resource( { int saved_errno; - if ( errno != ENOTTY ) + if ( errno != ENOTTY && errno != EOPNOTSUPP ) PERROR("ioctl failed"); else errno = EOPNOTSUPP;