These log lines are all in response to single system calls, and do not provide
any information which the immediate caller can't determine themselves. It is
however rude to put junk like this onto stderr, especially as system call
failures are not even error conditions in certain circumstances.
The FreeBSD logging has stale function names in, and Solaris shouldn't have
passed code review to start with.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
addr = mmap(addr, num << PAGE_SHIFT, prot, flags | MAP_SHARED, fd, 0);
if ( addr == MAP_FAILED )
- {
- PERROR("xc_map_foreign_bulk: mmap failed");
return NULL;
- }
ioctlx.num = num;
ioctlx.dom = dom;
if ( rc < 0 )
{
int saved_errno = errno;
- PERROR("xc_map_foreign_bulk: ioctl failed");
+
(void)munmap(addr, num << PAGE_SHIFT);
errno = saved_errno;
return NULL;
int saved_errno;
if ( errno != ENOSYS )
- PERROR("mmap resource ioctl failed");
+ ;
else
errno = EOPNOTSUPP;
addr = mmap(addr, num << PAGE_SHIFT, prot, flags | MAP_SHARED,
fd, 0);
if ( addr == MAP_FAILED )
- {
- PERROR("mmap failed");
return NULL;
- }
ioctlx.num = num;
ioctlx.dom = dom;
{
int saved_errno = errno;
- PERROR("ioctl failed");
(void)munmap(addr, num << PAGE_SHIFT);
errno = saved_errno;
return NULL;
int saved_errno;
if ( errno != fmem->unimpl_errno && errno != EOPNOTSUPP )
- PERROR("ioctl failed");
+ ;
else
errno = EOPNOTSUPP;
rc = ioctl(fmem->fd, IOCTL_PRIVCMD_MMAP_RESOURCE, &mr);
if ( rc )
{
- PERROR("ioctl failed");
-
if ( fres->addr )
{
int saved_errno = errno;
if ( ioctl(fd, IOCTL_PRIVCMD_MMAPBATCH, &ioctlx) < 0 )
{
int saved_errno = errno;
- PERROR("XXXXXXXX");
+
(void)munmap(addr, num*XC_PAGE_SIZE);
errno = saved_errno;
return NULL;