Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Print the warning message if extent_fre...
details: https://anonhg.NetBSD.org/src/rev/fdc7224b57ac
branches: trunk
changeset: 749773:fdc7224b57ac
user: nakayama <nakayama%NetBSD.org@localhost>
date: Mon Dec 07 19:57:34 2009 +0000
description:
Print the warning message if extent_free fails.
diffstat:
sys/arch/sparc64/dev/iommu.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diffs (60 lines):
diff -r cb450cdf680a -r fdc7224b57ac sys/arch/sparc64/dev/iommu.c
--- a/sys/arch/sparc64/dev/iommu.c Mon Dec 07 19:45:13 2009 +0000
+++ b/sys/arch/sparc64/dev/iommu.c Mon Dec 07 19:57:34 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iommu.c,v 1.94 2009/12/07 11:24:30 nakayama Exp $ */
+/* $NetBSD: iommu.c,v 1.95 2009/12/07 19:57:34 nakayama Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.94 2009/12/07 11:24:30 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.95 2009/12/07 19:57:34 nakayama Exp $");
#include "opt_ddb.h"
@@ -534,12 +534,14 @@
DPRINTF(IDB_INFO, ("iommu_dvmamap_load: "
"too many segments %d\n", seg));
s = splhigh();
- /* How can this fail? And if it does what can we do? */
err = extent_free(is->is_dvmamap,
dvmaddr, sgsize, EX_NOWAIT);
map->_dm_dvmastart = 0;
map->_dm_dvmasize = 0;
splx(s);
+ if (err != 0)
+ printf("warning: %s: %" PRId64
+ " of DVMA space lost\n", __func__, sgsize);
return (EFBIG);
}
sgstart += len;
@@ -643,7 +645,8 @@
map->_dm_dvmasize = 0;
splx(s);
if (error != 0)
- printf("warning: %qd of DVMA space lost\n", (long long)sgsize);
+ printf("warning: %s: %" PRId64 " of DVMA space lost\n",
+ __func__, sgsize);
/* Clear the map */
}
@@ -929,12 +932,14 @@
fail:
s = splhigh();
- /* How can this fail? And if it does what can we do? */
err = extent_free(is->is_dvmamap, map->_dm_dvmastart, sgsize,
EX_NOWAIT);
map->_dm_dvmastart = 0;
map->_dm_dvmasize = 0;
splx(s);
+ if (err != 0)
+ printf("warning: %s: %" PRId64 " of DVMA space lost\n",
+ __func__, sgsize);
return (EFBIG);
}
Home |
Main Index |
Thread Index |
Old Index