diff options
Diffstat (limited to 'xen/grant.c')
-rw-r--r-- | xen/grant.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/grant.c b/xen/grant.c index ae3a7bfc..6715a374 100644 --- a/xen/grant.c +++ b/xen/grant.c @@ -16,6 +16,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <model_dep.h> #include <sys/types.h> #include <mach/vm_param.h> #include <machine/spl.h> @@ -99,7 +100,7 @@ void hyp_grant_takeback(grant_ref_t grant) { simple_lock(&lock); if (grants[grant].flags & (GTF_reading|GTF_writing)) - panic("grant %d still in use (%lx)\n", grant, grants[grant].flags); + panic("grant %d still in use (%x)\n", grant, grants[grant].flags); /* Note: this is not safe, a cmpxchg is needed, see grant_table.h */ grants[grant].flags = 0; @@ -128,7 +129,7 @@ void hyp_grant_init(void) { ret = hyp_grant_table_op(GNTTABOP_setup_table, kvtolin(&setup), 1); if (ret) - panic("setup grant table error %d", ret); + panic("setup grant table error %ld", ret); if (setup.status) panic("setup grant table: %d\n", setup.status); |