tools/libs: remove obsolete xc_map_foreign_bulk from error string
PATCH 1/1 tools/libs: remove obsolete xc_map_foreign_bulk from error string
xc_map_foreign_bulk is an obsolete API, which is only used by qemu-xen-traditional.
Adjust the error string to refer to the current API.
Signed-off-by Olaf Hering <[email protected]>
--- tools/libs/foreignmemory/freebsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/libs/foreignmemory/freebsd.c +2 -2
@@ -66,7 +66,7 @@ void *osdep_xenforeignmemory_map(xenforeignmemory_handle *fmem, addr =mmap (addr, num <<PAGE_SHIFT , prot, flags |MAP_SHARED , fd,0 );if ( addr ==MAP_FAILED ) { -PERROR ("xc_map_foreign_bulk: mmap failed" ); +PERROR ("xenforeignmemory_map: mmap failed" );return NULL ; }
@@ -80,7 +80,7 @@ void *osdep_xenforeignmemory_map(xenforeignmemory_handle *fmem,if ( rc <0 ) {int saved_errno = errno; -PERROR ("xc_map_foreign_bulk: ioctl failed" ); +PERROR ("xenforeignmemory_map: ioctl failed" ); (void )munmap (addr, num <<PAGE_SHIFT ); errno = saved_errno;return NULL ;
Quoted 6 lines · Olaf Hering
xc_map_foreign_bulkis an obsolete API, which is only used by qemu-xen-traditional.Adjust the error string to refer to the current API.
Signed-off-by Olaf Hering <[email protected]>
Acked-by Wei Liu <[email protected]>