X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_io.c;h=4dbd61d5a97542a7d4b33d6f42fd552c1601ab25;hb=7c9087090f06a3fdf041f650912c36b6b12d7a82;hp=9f44fbd27fd58b78a43b46b7a22a2cd6c7767dce;hpb=29e825c5f095066bbb5ebbec5a5af1419d883264;p=palacios.git diff --git a/palacios/src/palacios/vmm_io.c b/palacios/src/palacios/vmm_io.c index 9f44fbd..4dbd61d 100644 --- a/palacios/src/palacios/vmm_io.c +++ b/palacios/src/palacios/vmm_io.c @@ -24,7 +24,7 @@ -#ifndef DEBUG_IO +#ifndef CONFIG_DEBUG_IO #undef PrintDebug #define PrintDebug(fmt, args...) #endif @@ -129,16 +129,18 @@ int v3_hook_io_port(struct guest_info * info, uint_t port, io_hook->priv_data = priv_data; if (insert_io_hook(info, io_hook)) { - V3_Free(io_hook); - return -1; + PrintError("Could not insert IO hook for port %d\n", port); + V3_Free(io_hook); + return -1; } if (info->io_map.update_map(info, port, ((read == NULL) ? 0 : 1), ((write == NULL) ? 0 : 1)) == -1) { - V3_Free(io_hook); - return -1; + PrintError("Could not update IO map for port %d\n", port); + V3_Free(io_hook); + return -1; }