]> git.proxmox.com Git - qemu.git/blobdiff - qemu-img.c
qom: Introduce object_class_get_list()
[qemu.git] / qemu-img.c
index c4bcf41e15707cd6c839f21494452cf09bef2989..0e48b352969d93b4857b0cd0a35b72c2e3bfe4c3 100644 (file)
@@ -1614,7 +1614,7 @@ static int img_resize(int argc, char **argv)
         printf("Image resized.\n");
         break;
     case -ENOTSUP:
-        error_report("This image format does not support resize");
+        error_report("This image does not support resize");
         break;
     case -EACCES:
         error_report("Image is read-only");
@@ -1655,6 +1655,8 @@ int main(int argc, char **argv)
     cmdname = argv[1];
     argc--; argv++;
 
+    qemu_init_main_loop();
+
     /* find the command */
     for(cmd = img_cmds; cmd->name != NULL; cmd++) {
         if (!strcmp(cmdname, cmd->name)) {