* [PATCH v1] tools/libs: remove obsolete xc_map_foreign_bulk from error string
@ 2020-10-14 9:44 Olaf Hering
2020-10-14 15:46 ` Wei Liu
0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2020-10-14 9:44 UTC (permalink / raw)
To: xen-devel; +Cc: Olaf Hering, Ian Jackson, Wei Liu
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 <olaf@aepfle.de>
---
tools/libs/foreignmemory/freebsd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/libs/foreignmemory/freebsd.c b/tools/libs/foreignmemory/freebsd.c
index 6e6bc4b11f..60bc87f530 100644
--- a/tools/libs/foreignmemory/freebsd.c
+++ b/tools/libs/foreignmemory/freebsd.c
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] tools/libs: remove obsolete xc_map_foreign_bulk from error string
2020-10-14 9:44 [PATCH v1] tools/libs: remove obsolete xc_map_foreign_bulk from error string Olaf Hering
@ 2020-10-14 15:46 ` Wei Liu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2020-10-14 15:46 UTC (permalink / raw)
To: Olaf Hering; +Cc: xen-devel, Ian Jackson, Wei Liu
On Wed, Oct 14, 2020 at 11:44:22AM +0200, Olaf Hering wrote:
> 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 <olaf@aepfle.de>
Acked-by: Wei Liu <wl@xen.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-14 15:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 9:44 [PATCH v1] tools/libs: remove obsolete xc_map_foreign_bulk from error string Olaf Hering
2020-10-14 15:46 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).