X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Finspector.c;h=56b6fa5b45b833e90d4c4d389d5b68970e536875;hb=5ef0e92d52b2698fd2706cd7cfc2b01526a6e319;hp=b6cfc1a529e23cc9082d8cb4c61dc1ad2c94afda;hpb=276cfa264720edddc1677e35c6a300596965de7d;p=palacios.git diff --git a/linux_module/inspector.c b/linux_module/inspector.c index b6cfc1a..56b6fa5 100644 --- a/linux_module/inspector.c +++ b/linux_module/inspector.c @@ -58,14 +58,14 @@ static int inspect_vm(struct v3_guest * guest, unsigned int cmd, unsigned long a if (root == NULL) { - printk("No inspection root found\n"); + ERROR("No inspection root found\n"); return -1; } guest_dir = debugfs_create_dir(guest->name, v3_dir); - if (IS_ERR(guest_dir)) { - printk("Error Creating inspector tree for VM \"%s\"\n", guest->name); + if (!guest_dir || IS_ERR(guest_dir)) { + ERROR("Error Creating inspector tree for VM \"%s\"\n", guest->name); return -1; } @@ -79,8 +79,8 @@ static int init_inspector( void ) { v3_dir = debugfs_create_dir("v3vee", NULL); - if (IS_ERR(v3_dir)) { - printk("Error creating v3vee debugfs directory\n"); + if (!v3_dir || IS_ERR(v3_dir)) { + ERROR("Error creating v3vee debugfs directory\n"); return -1; }