Redo previous; kill the right printf()

This commit is contained in:
bouyer 2022-09-01 15:32:16 +00:00
parent 921c7ef390
commit aaff4d1b29
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: privcmd.c,v 1.65 2022/09/01 12:31:26 bouyer Exp $ */
/* $NetBSD: privcmd.c,v 1.66 2022/09/01 15:32:16 bouyer Exp $ */
/*-
* Copyright (c) 2004 Christian Limpach.
@ -27,7 +27,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: privcmd.c,v 1.65 2022/09/01 12:31:26 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: privcmd.c,v 1.66 2022/09/01 15:32:16 bouyer Exp $");
#include "opt_xen.h"
@ -554,14 +554,13 @@ privcmd_mmapbatch_v2(struct vop_ioctl_args *ap)
set_xen_guest_handle(add.errs, &err2);
err = HYPERVISOR_memory_op(XENMEM_add_to_physmap_batch, &add);
if (err < 0) {
printf("privcmd_mmapbatch_v2: XENMEM_add_to_physmap_batch failed %d\n", err);
privpgop_detach(&obj->uobj);
return privcmd_xen2bsd_errno(err);
}
err = err2;
if (err == 0)
maddr[i] = base_paddr + i * PAGE_SIZE;
else
printf("privcmd_mmapbatch_v2: XENMEM_add_to_physmap_batch failed %d for entry %d\n", err, i);
#endif /* XENPV */
cerr = copyout(&err, &pmb->err[i], sizeof(pmb->err[i]));