xenpaging: remove perror usage in xenpaging_init error path
authorOlaf Hering <olaf@aepfle.de>
Tue, 14 Dec 2010 18:47:52 +0000 (18:47 +0000)
committerOlaf Hering <olaf@aepfle.de>
Tue, 14 Dec 2010 18:47:52 +0000 (18:47 +0000)
Use the libxc error macro to report errors if initialising xenpaging
fails. Also report the actual errno string.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenpaging/xenpaging.c

index 9bfbd12ea0178088de6a75192fcc4a26b434fde7..0e82121e29a5fd503854f164e32298277d54a06e 100644 (file)
@@ -141,7 +141,7 @@ xenpaging_t *xenpaging_init(xc_interface **xch_r, domid_t domain_id)
                 ERROR("EPT not supported for this guest");
                 break;
             default:
-                perror("Error initialising shared page");
+                ERROR("Error initialising shared page: %s", strerror(errno));
                 break;
         }
         goto err;